SOLL icon indicating copy to clipboard operation
SOLL copied to clipboard

Type cast confused in builtin functions

Open jacky860226 opened this issue 4 years ago • 1 comments

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().

jacky860226 avatar Aug 02 '21 16:08 jacky860226

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.

hydai avatar Aug 05 '21 05:08 hydai