Skip to content

Commit 49f1804

Browse files
committed
rebase backport of #38855 onto beta
1 parent 6b6036c commit 49f1804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_trans/mir/block.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ impl<'bcx, 'tcx> MirContext<'bcx, 'tcx> {
223223
} else {
224224
let op = self.trans_consume(&bcx, &mir::Lvalue::Local(mir::RETURN_POINTER));
225225
if let Ref(llval) = op.val {
226-
base::load_ty(&bcx, llval, op.ty)
226+
bcx.with_block(|bcx| base::load_ty(&bcx, llval, op.ty))
227227
} else {
228228
op.pack_if_pair(&bcx).immediate()
229229
}

0 commit comments

Comments
 (0)