Fix bug introduced by 1a45a84e73
This commit is contained in:
parent
1a45a84e73
commit
a2466233b4
@ -529,6 +529,7 @@ fn bind_irrefutable_pat(bcx: @block_ctxt, pat: &@ast::pat, val: ValueRef,
|
||||
bcx = trans::copy_val(bcx, trans::INIT, alloc,
|
||||
trans::load_if_immediate(bcx, val, ty), ty);
|
||||
table.insert(pat.id, alloc);
|
||||
trans_common::add_clean(bcx, alloc, ty);
|
||||
} else { table.insert(pat.id, val); }
|
||||
}
|
||||
ast::pat_tag(_, sub) {
|
||||
|
Loading…
Reference in New Issue
Block a user