LLVM error with arithemetic on function addresses #64521
Labels
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
O-wasm
Target: WASM (WebAssembly), http://webassembly.org/
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Hello! I was doing some experimenting with Wasm callbacks and ran into 2 issues.
The code for the guest is compiled with Rust
1.37.0
on OSX with--target=wasm32-unknown-unknown
and--release
.edit: the first issue is no longer relevant; I misunderstood how function pointers were implemented. By using the table to look up these values, I got it working!
The second issue
While investigating this, I also found that the invalid solution of relying on the guest to offset correctly:
causes an LLVM error:
Let me know if I can clarify or help out with this!
The text was updated successfully, but these errors were encountered: