Use correct lang item for AssertKind::MisalignedPointerDereference

cc #1381
This commit is contained in:
bjorn3 2023-07-12 19:03:27 +00:00
parent c3a0431731
commit aa6916bd01

View File

@ -372,7 +372,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
codegen_panic_inner(
fx,
rustc_hir::LangItem::PanicBoundsCheck,
rustc_hir::LangItem::PanicMisalignedPointerDereference,
&[required, found, location],
source_info.span,
);