Skip to content

Commit a1c95ec

Browse files
committed
Emit lifetime end markers for allocas for ignored return values
1 parent 39135ec commit a1c95ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc/middle/trans/callee.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,7 @@ pub fn trans_call_inner<'a>(
887887
(Some(expr::Ignore), Some(llretslot)) => {
888888
// drop the value if it is not being saved.
889889
bcx = glue::drop_ty(bcx, llretslot, ret_ty);
890+
call_lifetime_end(bcx, llretslot);
890891
}
891892
_ => {}
892893
}

0 commit comments

Comments
 (0)