@@ -4676,8 +4676,6 @@ fn trans_be(cx: @block_ctxt, e: @ast::expr) : ast_util::is_call_expr(e) ->
4676
4676
fn init_local ( bcx : @block_ctxt , local : @ast:: local ) -> @block_ctxt {
4677
4677
let ty = node_id_type ( bcx_ccx ( bcx) , local. node . id ) ;
4678
4678
let llptr = bcx. fcx . lllocals . get ( local. node . id ) ;
4679
- // Make a note to drop this slot on the way out.
4680
- add_clean ( bcx, llptr, ty) ;
4681
4679
4682
4680
if must_zero ( bcx_ccx ( bcx) , local) {
4683
4681
bcx = zero_alloca ( bcx, llptr, ty) ;
@@ -4698,9 +4696,10 @@ fn init_local(bcx: @block_ctxt, local: @ast::local) -> @block_ctxt {
4698
4696
}
4699
4697
_ { }
4700
4698
}
4701
- bcx =
4702
- trans_alt:: bind_irrefutable_pat ( bcx, local. node . pat , llptr,
4703
- bcx. fcx . lllocals , false ) ;
4699
+ // Make a note to drop this slot on the way out.
4700
+ add_clean ( bcx, llptr, ty) ;
4701
+ bcx = trans_alt:: bind_irrefutable_pat ( bcx, local. node . pat , llptr,
4702
+ bcx. fcx . lllocals , false ) ;
4704
4703
ret bcx;
4705
4704
4706
4705
fn must_zero ( ccx : @crate_ctxt , local : @ast:: local ) -> bool {
0 commit comments