Skip to content

Commit

Permalink
Properly propagate block changes while translating drop glue
Browse files Browse the repository at this point in the history
  • Loading branch information
dotdash authored and Manishearth committed Mar 2, 2015
1 parent 1cc8b6e commit fe91974
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/librustc_trans/trans/glue.rs
Expand Up @@ -313,8 +313,7 @@ fn trans_struct_drop<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
ty::mk_nil(bcx.tcx()));
let (_, variant_cx) = invoke(variant_cx, dtor_addr, &args[..], dtor_ty, DebugLoc::None);

variant_cx.fcx.pop_and_trans_custom_cleanup_scope(variant_cx, field_scope);
variant_cx
variant_cx.fcx.pop_and_trans_custom_cleanup_scope(variant_cx, field_scope)
})
}

Expand Down

0 comments on commit fe91974

Please sign in to comment.