]> git.lizzy.rs Git - rust.git/commitdiff
Emit lifetime end markers for allocas for ignored return values
authorBjörn Steinbrink <bsteinbr@gmail.com>
Mon, 28 Jul 2014 06:41:44 +0000 (08:41 +0200)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Mon, 28 Jul 2014 14:39:53 +0000 (16:39 +0200)
src/librustc/middle/trans/callee.rs

index 341281c41927e5cbc6b050471191359b9a48f531..b95bd08dd164209fd47e3f7366c1831439f72fb5 100644 (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);
         }
         _ => {}
     }