Skip to content

Commit c666894

Browse files
committed
Fix compilation error in cranelift
1 parent 0a7dea4 commit c666894

File tree

1 file changed

+2
-0
lines changed
  • compiler/rustc_codegen_cranelift/src

1 file changed

+2
-0
lines changed

compiler/rustc_codegen_cranelift/src/base.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,12 +408,14 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
408408
)
409409
}
410410
AssertKind::InvalidEnumConstruction(source) => {
411+
let source = codegen_operand(fx, source).load_scalar(fx);
411412
let location = fx.get_caller_location(source_info).load_scalar(fx);
412413

413414
codegen_panic_inner(
414415
fx,
415416
rustc_hir::LangItem::PanicInvalidEnumConstruction,
416417
&[source, location],
418+
*unwind,
417419
Some(source_info.span),
418420
)
419421
}

0 commit comments

Comments
 (0)