Skip to content

Commit f56cf16

Browse files
committed
stop zeroing the drop flag in drop glue
this is only going to cover up real bugs, as it's not part of the model used to prevent multiple destructor calls
1 parent a9fb88d commit f56cf16

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/librustc/middle/trans/glue.rs

-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,6 @@ pub fn trans_struct_drop_flag(bcx: @mut Block, t: ty::t, v0: ValueRef, dtor_did:
423423
bcx = drop_ty(bcx, llfld_a, fld.mt.ty);
424424
}
425425

426-
Store(bcx, C_u8(0), drop_flag);
427426
bcx
428427
}
429428
}

0 commit comments

Comments
 (0)