Properly propagate block changes while translating drop glue

This commit is contained in:
Björn Steinbrink 2015-03-02 12:11:46 +01:00 committed by Manish Goregaokar
parent 1cc8b6ec66
commit fe91974dd6
1 changed files with 1 additions and 2 deletions

View File

@ -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)
})
}