Skip to content

Commit 1811f13

Browse files
committed
raise ICE if LLVM worker threads panic
1 parent 00e1f5b commit 1811f13

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/librustc_codegen_llvm/back/write.rs

+2-4
Original file line numberDiff line numberDiff line change
@@ -2031,9 +2031,7 @@ fn start_executing_work(tcx: TyCtxt,
20312031
main_thread_worker_state = MainThreadWorkerState::Idle;
20322032
}
20332033
Message::Done { result: Err(()), worker_id: _ } => {
2034-
shared_emitter.fatal("aborting due to worker thread failure");
2035-
// Exit the coordinator thread
2036-
return Err(())
2034+
bug!("worker thread panicked");
20372035
}
20382036
Message::CodegenItem => {
20392037
bug!("the coordinator should not receive codegen requests")
@@ -2392,7 +2390,7 @@ impl OngoingCodegen {
23922390
panic!("expected abort due to worker thread errors")
23932391
},
23942392
Err(_) => {
2395-
sess.fatal("Error during codegen/LLVM phase.");
2393+
bug!("panic during codegen/LLVM phase");
23962394
}
23972395
};
23982396

0 commit comments

Comments
 (0)