Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type cast confused in builtin functions #108

Open
jacky860226 opened this issue Aug 2, 2021 · 1 comment
Open

Type cast confused in builtin functions #108

jacky860226 opened this issue Aug 2, 2021 · 1 comment

Comments

@jacky860226
Copy link
Contributor

jacky860226 commented Aug 2, 2021

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
Copy link
Member

hydai commented Aug 5, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants