This is a fix on top of D106525's Case 2. In D106525, in
runEHOnFunction which handles Emscripten EH, We rethrow longjmp only
when the module has any usage of setjmp or longjmp. But now Wasm
object files are linked using wasm-ld, the module this pass sees is not
the whole program, and even if this module does not contain any
longjmp, another file can contain it and can be linked with the
current module. This enables the rethrowing of longjmp whenever
Emscripten SjLj is enabled, regardless of whether it is used in this
module or not.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo