We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5fe3528 commit 6fa99deCopy full SHA for 6fa99de
compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -419,6 +419,8 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
419
// it prevents control flow from "falling through" into whatever code
420
// happens to be laid out next in memory.
421
Options.TrapUnreachable = true;
422
+ // But don't emit traps after other traps or no-returns unnecessarily.
423
+ Options.NoTrapAfterNoreturn = true;
424
}
425
426
if (Singlethread) {
0 commit comments