Skip to content

Commit 8450a00

Browse files
committed
Sync from rust f10db292a3733b5c67c8da8c7661195ff4b05774
2 parents 28eb697 + fca1bc4 commit 8450a00

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

src/base.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,17 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
420420
source_info.span,
421421
)
422422
}
423+
AssertKind::NullReferenceConstructed => {
424+
let location = fx.get_caller_location(source_info).load_scalar(fx);
425+
426+
codegen_panic_inner(
427+
fx,
428+
rustc_hir::LangItem::PanicNullReferenceConstructed,
429+
&[location],
430+
*unwind,
431+
source_info.span,
432+
)
433+
}
423434
AssertKind::InvalidEnumConstruction(source) => {
424435
let source = codegen_operand(fx, source).load_scalar(fx);
425436
let location = fx.get_caller_location(source_info).load_scalar(fx);

0 commit comments

Comments
 (0)