1
Fork 0

Emit lifetime end markers for allocas for ignored return values

This commit is contained in:
Björn Steinbrink 2014-07-28 08:41:44 +02:00
parent 39135ecb18
commit a1c95ecca1

View file

@ -887,6 +887,7 @@ pub fn trans_call_inner<'a>(
(Some(expr::Ignore), Some(llretslot)) => {
// drop the value if it is not being saved.
bcx = glue::drop_ty(bcx, llretslot, ret_ty);
call_lifetime_end(bcx, llretslot);
}
_ => {}
}