about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNoa <coolreader18@gmail.com>2024-02-22 00:34:54 -0600
committerNoa <coolreader18@gmail.com>2024-02-22 16:45:28 -0600
commit861c7e74c8bbc49082dcd38ef7169d99c69cd104 (patch)
treee1b69809bdf42d762b84aa2314be4ff3c456e742
parent3908a935ef821c2828a7d825eac859f8ff54702a (diff)
downloadrust-861c7e74c8bbc49082dcd38ef7169d99c69cd104.tar.gz
rust-861c7e74c8bbc49082dcd38ef7169d99c69cd104.zip
Fix llvm hang
-rw-r--r--compiler/rustc_codegen_ssa/src/mir/block.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/mir/block.rs b/compiler/rustc_codegen_ssa/src/mir/block.rs
index 75d413dedad..4a4ac60d59e 100644
--- a/compiler/rustc_codegen_ssa/src/mir/block.rs
+++ b/compiler/rustc_codegen_ssa/src/mir/block.rs
@@ -1539,7 +1539,7 @@ impl<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>> FunctionCx<'a, 'tcx, Bx> {
         let funclet;
         let llbb;
         let mut bx;
-        if base::wants_msvc_seh(self.cx.sess()) {
+        if base::wants_new_eh_instructions(self.cx.sess()) {
             // This is a basic block that we're aborting the program for,
             // notably in an `extern` function. These basic blocks are inserted
             // so that we assert that `extern` functions do indeed not panic,