mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 04:56:25 +03:00
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
This commit is contained in:
@@ -423,7 +423,6 @@ pub fn trans_struct_drop_flag(bcx: @mut Block, t: ty::t, v0: ValueRef, dtor_did:
|
||||
bcx = drop_ty(bcx, llfld_a, fld.mt.ty);
|
||||
}
|
||||
|
||||
Store(bcx, C_u8(0), drop_flag);
|
||||
bcx
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user