Emit lifetime end markers for allocas for ignored return values
This commit is contained in:
parent
39135ecb18
commit
a1c95ecca1
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
_ => {}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue