We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 047dd55 + 6fa99de commit 7a9bfd4Copy full SHA for 7a9bfd4
compiler/rustc_llvm/llvm-wrapper/PassWrapper.cpp
@@ -437,6 +437,8 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
437
// it prevents control flow from "falling through" into whatever code
438
// happens to be laid out next in memory.
439
Options.TrapUnreachable = true;
440
+ // But don't emit traps after other traps or no-returns unnecessarily.
441
+ Options.NoTrapAfterNoreturn = true;
442
}
443
444
if (Singlethread) {
0 commit comments