You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This error not appears without any optimization or BINARYEN_TRAP_MODE='clamp'.
Looks like the compiler believe that expression (ival = ( int) val) has no side effects this is not the case.
The text was updated successfully, but these errors were encountered:
This looks like the same as WebAssembly/binaryen#1110 , where the LLVM optimizer can move code around in ways that can trap in wasm. (The binaryen optimizer is aware of this, but not the LLVM optimizer.)
This seems to be a common issue, maybe we need to think about a plan for this that includes all the compilers and optimizers.
This issue has been automatically marked as stale because there has been no activity in the past year. It will be closed automatically if no further activity occurs in the next 7 days. Feel free to re-open at any time if this issue is still relevant.
Expression (ival = ( int) val) is executed even if safeCast==false
example for this issue: d.cpp
Compile command:
emcc -O2 d.cpp -o d.html -s WASM=1
This error not appears without any optimization or BINARYEN_TRAP_MODE='clamp'.
Looks like the compiler believe that expression (ival = ( int) val) has no side effects this is not the case.
The text was updated successfully, but these errors were encountered: