Skip to content

Commit 2aab6af

Browse files
committed
Fix tidy
1 parent 62581b8 commit 2aab6af

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc_codegen_llvm/mir/place.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,8 @@ impl<'a, 'tcx> FunctionCx<'a, 'tcx> {
461461
// so we generate an abort
462462
let fnname = bx.cx.get_intrinsic(&("llvm.trap"));
463463
bx.call(fnname, &[], None);
464-
PlaceRef::new_sized(C_undef(layout.llvm_type(bx.cx).ptr_to()), layout, layout.align)
464+
let llval = C_undef(layout.llvm_type(bx.cx).ptr_to());
465+
PlaceRef::new_sized(llval, layout, layout.align)
465466
}
466467
}
467468
}

0 commit comments

Comments
 (0)