Skip to content

Commit a504970

Browse files
committed
---
yaml --- r: 4910 b: refs/heads/master c: 9f44df6 h: refs/heads/master v: v3
1 parent cc8474d commit a504970

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
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: 054914712e40ecd908b21ac7f0943de8738e033a
2+
refs/heads/master: 9f44df65efe59745c08c8af1adaad37525189f8c

trunk/src/comp/middle/trans_alt.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,10 @@ fn compile_submatch(bcx: @block_ctxt, m: &match, vals: [ValueRef],
304304
bcx.fcx.lllocals.insert
305305
(val, option::get(assoc(key, m[0].bound)));
306306
}
307-
let {bcx: guard_cx, val: guard_val} =
307+
let {bcx: guard_bcx, val: guard_val} =
308308
trans::trans_expr(guard_cx, e);
309-
guard_cx.build.CondBr(guard_val, next_cx.llbb, else_cx.llbb);
309+
guard_bcx = trans::trans_block_cleanups(guard_bcx, guard_cx);
310+
guard_bcx.build.CondBr(guard_val, next_cx.llbb, else_cx.llbb);
310311
compile_submatch(else_cx, vec::slice(m, 1u, vec::len(m)),
311312
vals, f, exits);
312313
bcx = next_cx;

0 commit comments

Comments
 (0)