Type cast confused in builtin functions
jacky860226 opened this issue · 1 comments
jacky860226 commented
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()
.
hydai commented
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.