[llvm] [WebAssembly] Skip Wasm SjLj if EH target feature is missing (PR #178377)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 28 00:16:56 PST 2026
================
@@ -1,12 +1,12 @@
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --version 5
-; RUN: opt -S -wasm-lower-em-ehsjlj -wasm-enable-sjlj -mtriple=wasm32-unknown-emscripten < %s | FileCheck %s
+; RUN: opt -S -wasm-lower-em-ehsjlj -wasm-enable-sjlj -mattr=+exception-handling -mtriple=wasm32-unknown-emscripten < %s | FileCheck %s
@buf = external global i8
declare i32 @setjmp(ptr) returns_twice
declare void @dummy()
define void @test_static() {
-; CHECK-LABEL: define void @test_static() personality ptr @__gxx_wasm_personality_v0 {
+; CHECK-LABEL: define void @test_static() {{.*}} personality ptr @__gxx_wasm_personality_v0 {
----------------
aheejin wrote:
These changes are necessary because output files now have attribute numbers here. Ditto for other similar changes.
https://github.com/llvm/llvm-project/pull/178377
More information about the llvm-commits
mailing list