Skip to content

Commit f69b441

Browse files
committed
Don't drop context returned from decl-init call to copy_ty.
1 parent 0f41f5a commit f69b441

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/comp/middle/trans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1510,8 +1510,8 @@ impure fn trans_stmt(@block_ctxt cx, &ast.stmt s) -> result {
15101510
check (cx.fcx.lllocals.contains_key(local.id));
15111511
auto llptr = cx.fcx.lllocals.get(local.id);
15121512
sub = trans_expr(cx, e);
1513-
copy_ty(sub.bcx, true, llptr, sub.val,
1514-
typeck.expr_ty(e));
1513+
sub = copy_ty(sub.bcx, true, llptr, sub.val,
1514+
typeck.expr_ty(e));
15151515
}
15161516
case (_) { /* fall through */ }
15171517
}

0 commit comments

Comments
 (0)