From f56cf16b8076ae55cb0160da48330cf76849c752 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 7 Oct 2013 18:41:20 -0400 Subject: [PATCH] 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 --- src/librustc/middle/trans/glue.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/librustc/middle/trans/glue.rs b/src/librustc/middle/trans/glue.rs index eafbb0e9d016..551756ce863b 100644 --- a/src/librustc/middle/trans/glue.rs +++ b/src/librustc/middle/trans/glue.rs @@ -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 } }