[llvm] Ensure NoTrapAfterNoreturn is false for the wasm backend (PR #65876)
Heejin Ahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 20 17:05:18 PDT 2023
================
@@ -127,6 +127,7 @@ WebAssemblyTargetMachine::WebAssemblyTargetMachine(
// LLVM 'unreachable' to ISD::TRAP and then lower that to WebAssembly's
// 'unreachable' instructions which is meant for that case.
this->Options.TrapUnreachable = true;
+ this->Options.NoTrapAfterNoreturn = false;
----------------
aheejin wrote:
Why is this a bugfix? (You said this is an actual bugfix in https://github.com/llvm/llvm-project/pull/65876/files#r1322760404) This option is false by default and since we haven't overridden it, it has been false so far. What effect does this line have then?
https://github.com/llvm/llvm-project/pull/65876
More information about the llvm-commits
mailing list