Add sess.abort_if_errors() to link
This commit is contained in:
parent
92dc61aba2
commit
4ada18fd77
1 changed files with 2 additions and 0 deletions
|
@ -234,6 +234,8 @@ impl CodegenBackend for CraneliftCodegenBackend {
|
|||
) -> Result<(), ErrorReported> {
|
||||
use rustc_codegen_ssa::back::link::link_binary;
|
||||
|
||||
sess.abort_if_errors();
|
||||
|
||||
let codegen_results = *res
|
||||
.downcast::<CodegenResults>()
|
||||
.expect("Expected CraneliftCodegenBackend's CodegenResult, found Box<Any>");
|
||||
|
|
Loading…
Add table
Reference in a new issue