[flang-commits] [clang] [flang] [llvm] WebAssembly: Drive Emscripten EH from the exception model, drop the cl::opt (PR #223972)

Matt Arsenault via flang-commits flang-commits at lists.llvm.org
Wed Sep 16 23:12:10 PDT 2026


================
@@ -13,6 +13,12 @@
 // SEH maps to the "wineh" spelling regardless of the requesting triple.
 // RUN: %clang_cc1 -triple i686-unknown-windows-gnu -fexceptions -exception-model=seh -emit-llvm %s -o - | FileCheck %s --check-prefix=WINEH
 
+// Wasm EH (needs the backend enable flag) records the "wasm" model.
+// RUN: %clang_cc1 -triple wasm32-unknown-unknown -fexceptions -exception-model=wasm -mllvm -wasm-enable-eh -emit-llvm %s -o - | FileCheck %s --check-prefix=WASM
----------------
arsenm wrote:

Oh, no. I forgot about that one

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


More information about the flang-commits mailing list