[clang] [llvm] [WebAssembly] Implement an alternative translation for -wasm-enable-sjlj (PR #84137)

Sam Clegg via cfe-commits cfe-commits at lists.llvm.org
Wed Mar 13 08:12:03 PDT 2024


================
@@ -198,9 +198,18 @@
 ///
 /// If there are calls to setjmp()
 ///
-/// 2) and 3): The same as 2) and 3) in Emscripten SjLj.
-/// (setjmpTable/setjmpTableSize initialization + setjmp callsite
-/// transformation)
+/// 2) In the function entry that calls setjmp, initialize
+///    functionInvocationId as follows:
+///
+///    functionInvocationId = alloca()
----------------
sbc100 wrote:

Can you include the size that passed to alloca here?  

 (looks like its getInt32Ty() so maybe put 4 here?)

https://github.com/llvm/llvm-project/pull/84137


More information about the cfe-commits mailing list