[llvm] [WebAssembly] Fix exception handling initialization order in TargetMachine constructor (PR #177542)

Anutosh Bhat via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 23 21:43:49 PST 2026


anutosh491 wrote:

> I don't know much about clang-repl so I'm not sure if there's a way to add a test for the backend. If there is, it'd be good have one, but in case it's hard, LGTM.

Thanks for all the help here. 

Yes we have a testing framework we are working towards i.e building ClangReplInterpreterTests.js with emscripten https://github.com/llvm/llvm-project/blob/main/clang/unittests/Interpreter/CMakeLists.txt#L72-L93

1) We are working towards adding a tests for the simple emscripten EH model where the interpreter is able to parse these flags https://github.com/llvm/llvm-project/pull/132670/files#diff-9b27f347e7ca15f949d4453d24eeca3a6f841a1f7873c86eb98aa44192faaf15R460 and handle exceptions well. It is almost ready.

2) it would be great to land this (as it is required & needed for clang-repl but also probably an isolated problem in theory on its own)

3) Then we would make a PR enabling wasm-exceptions for clang-repl where the test mentioned in 1) would be updated with the right flags.

I would be commenting on this PR confirming the addition of the test when we reach step 3 anytime soon !

Taking the liberty to merge as it has been approved. Shall get back on this soon.

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


More information about the llvm-commits mailing list