diff options
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
-rw-r--r-- | llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp index 73765f8..7b7ba0b 100644 --- a/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp +++ b/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp @@ -133,7 +133,10 @@ WebAssemblyTargetMachine::WebAssemblyTargetMachine( // WebAssembly type-checks instructions, but a noreturn function with a return // type that doesn't match the context will cause a check failure. So we lower // LLVM 'unreachable' to ISD::TRAP and then lower that to WebAssembly's - // 'unreachable' instructions which is meant for that case. + // 'unreachable' instructions which is meant for that case. Formerly, we also + // needed to add checks to SP failure emission in the instruction selection + // backends, but this has since been tied to TrapUnreachable and is no longer + // necessary. this->Options.TrapUnreachable = true; this->Options.NoTrapAfterNoreturn = false; |