[WebAssembly] Rethrow longjmp in EH handling if EmSjLj is enabled
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. Reviewed By: dschuff Differential Revision: https://reviews.llvm.org/D109670
Loading
Please register or sign in to comment