SOLL
SOLL copied to clipboard
Type cast confused in builtin functions
For example, in function CodeGenModule::emitCall:
https://github.com/second-state/SOLL/blob/master/lib/CodeGen/CodeGenModule.cpp#L2142
https://github.com/second-state/SOLL/blob/master/lib/CodeGen/CodeGenModule.cpp#L2156
Type of AddressPtr is determined by isEVM() or isEWASM().
This depends on the final EEI call. Actually, you can find that EVM external functions have totally different function types from EWASM ones. So we have to use different builtin functions to convert them into their own function types.