Skip to content

Commit a246623

Browse files
committed
Fix bug introduced by 1a45a84
1 parent 1a45a84 commit a246623

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/comp/middle/trans_alt.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ fn bind_irrefutable_pat(bcx: @block_ctxt, pat: &@ast::pat, val: ValueRef,
529529
bcx = trans::copy_val(bcx, trans::INIT, alloc,
530530
trans::load_if_immediate(bcx, val, ty), ty);
531531
table.insert(pat.id, alloc);
532+
trans_common::add_clean(bcx, alloc, ty);
532533
} else { table.insert(pat.id, val); }
533534
}
534535
ast::pat_tag(_, sub) {

0 commit comments

Comments
 (0)