]> git.lizzy.rs Git - rust.git/commitdiff
raise ICE if LLVM worker threads panic
authorAndy Russell <arussell123@gmail.com>
Fri, 12 Oct 2018 20:25:22 +0000 (16:25 -0400)
committerAndy Russell <arussell123@gmail.com>
Fri, 12 Oct 2018 21:30:13 +0000 (17:30 -0400)
src/librustc_codegen_llvm/back/write.rs

index 02ef690b942333c8f44ed8576fd863eeceba265e..95281e2445a1c36baecc71c9f116094e085b3668 100644 (file)
@@ -2031,9 +2031,7 @@ fn start_executing_work(tcx: TyCtxt,
                     main_thread_worker_state = MainThreadWorkerState::Idle;
                 }
                 Message::Done { result: Err(()), worker_id: _ } => {
-                    shared_emitter.fatal("aborting due to worker thread failure");
-                    // Exit the coordinator thread
-                    return Err(())
+                    bug!("worker thread panicked");
                 }
                 Message::CodegenItem => {
                     bug!("the coordinator should not receive codegen requests")
@@ -2392,7 +2390,7 @@ pub(crate) fn join(
                 panic!("expected abort due to worker thread errors")
             },
             Err(_) => {
-                sess.fatal("Error during codegen/LLVM phase.");
+                bug!("panic during codegen/LLVM phase");
             }
         };