Don't drop context returned from decl-init call to copy_ty.
This commit is contained in:
parent
0f41f5a8f9
commit
f69b4417e6
1 changed files with 2 additions and 2 deletions
|
@ -1510,8 +1510,8 @@ impure fn trans_stmt(@block_ctxt cx, &ast.stmt s) -> result {
|
||||||
check (cx.fcx.lllocals.contains_key(local.id));
|
check (cx.fcx.lllocals.contains_key(local.id));
|
||||||
auto llptr = cx.fcx.lllocals.get(local.id);
|
auto llptr = cx.fcx.lllocals.get(local.id);
|
||||||
sub = trans_expr(cx, e);
|
sub = trans_expr(cx, e);
|
||||||
copy_ty(sub.bcx, true, llptr, sub.val,
|
sub = copy_ty(sub.bcx, true, llptr, sub.val,
|
||||||
typeck.expr_ty(e));
|
typeck.expr_ty(e));
|
||||||
}
|
}
|
||||||
case (_) { /* fall through */ }
|
case (_) { /* fall through */ }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue