Skip to content

Commit

Permalink
raise ICE if LLVM worker threads panic
Browse files Browse the repository at this point in the history
  • Loading branch information
euclio committed Oct 12, 2018
1 parent 00e1f5b commit 1811f13
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/librustc_codegen_llvm/back/write.rs
Expand Up @@ -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")
Expand Down Expand Up @@ -2392,7 +2390,7 @@ impl OngoingCodegen {
panic!("expected abort due to worker thread errors")
},
Err(_) => {
sess.fatal("Error during codegen/LLVM phase.");
bug!("panic during codegen/LLVM phase");
}
};

Expand Down

0 comments on commit 1811f13

Please sign in to comment.