Skip to content

Commit 422b888

Browse files
committed
---
yaml --- r: 1415 b: refs/heads/master c: d7f7634 h: refs/heads/master i: 1413: 98f02a5 1411: cba58bc 1407: c671057 v: v3
1 parent df1683b commit 422b888

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: af4d6ae76b05d4edb9d7074b971600a447c9c9a4
2+
refs/heads/master: d7f7634c955deaf55cf11071d5e92300a059be61

trunk/src/comp/middle/trans.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,6 +2189,7 @@ fn trans_for(@block_ctxt cx,
21892189
cx.build.Br(scope_cx.llbb);
21902190
auto local_res = alloc_local(scope_cx, local);
21912191
auto bcx = copy_ty(local_res.bcx, INIT, local_res.val, curr, t).bcx;
2192+
scope_cx.cleanups += clean(bind drop_slot(_, local_res.val, t));
21922193
bcx = trans_block(bcx, body).bcx;
21932194
bcx.build.Br(next_cx.llbb);
21942195
ret res(next_cx, C_nil());

0 commit comments

Comments
 (0)