aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll
diff options
context:
space:
mode:
authorHeejin Ahn <aheejin@gmail.com>2026-02-12 13:33:18 -0800
committerGitHub <noreply@github.com>2026-02-12 13:33:18 -0800
commitc1e90fa663ca46c70d079503b83340d5e38105a4 (patch)
treeed1a037707ab83f88af5d384c496706fe1ebe2df /llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll
parenta8be67e6f3da18b70961a72c56a3f802b4ab4da9 (diff)
downloadllvm-main.zip
llvm-main.tar.gz
llvm-main.tar.bz2
[WebAssembly] Error on Wasm SjLj if +exception-handling is missing (#181070)HEADmain
This checks every user function of `setjmp` or `longjmp` and if any of them does not have `+exception-handling` target feature, errors out. Hopefully this gives a clearer error message to the users in case they do not provide consistent SjLj flags at compile time vs. link time. Closes #178135 and closes https://github.com/emscripten-core/emscripten/issues/26165.
Diffstat (limited to 'llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll')
-rw-r--r--llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll b/llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll
index 9de6652..d5ae37d7 100644
--- a/llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll
+++ b/llvm/test/CodeGen/WebAssembly/lower-wasm-ehsjlj.ll
@@ -1,4 +1,4 @@
-; RUN: opt < %s -wasm-lower-em-ehsjlj -wasm-enable-eh -wasm-enable-sjlj -S | FileCheck %s
+; RUN: opt < %s -wasm-lower-em-ehsjlj -wasm-enable-eh -wasm-enable-sjlj -mattr=+exception-handling -S | FileCheck %s
; RUN: llc < %s -wasm-enable-eh -wasm-enable-sjlj -exception-model=wasm -mattr=+exception-handling -verify-machineinstrs
target datalayout = "e-m:e-p:32:32-i64:64-n32:64-S128"
@@ -109,7 +109,7 @@ catch: ; preds = %catch.start
catchret from %2 to label %catchret.dest
; CHECK: catch: ; preds = %catch.start
; CHECK-NEXT: %exn = load ptr, ptr %exn.slot, align 4
-; CHECK-NEXT: %5 = call ptr @__cxa_begin_catch(ptr %exn) #3 [ "funclet"(token %2) ]
+; CHECK-NEXT: %5 = call ptr @__cxa_begin_catch(ptr %exn) {{.*}} [ "funclet"(token %2) ]
; CHECK-NEXT: invoke void @__cxa_end_catch() [ "funclet"(token %2) ]
; CHECK-NEXT: to label %.noexc unwind label %catch.dispatch.longjmp