Skip to content

Commit 6c0297c

Browse files
committed
rustc: bzero in drop_slot
1 parent fcec628 commit 6c0297c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2349,7 +2349,7 @@ fn drop_slot(cx: &@block_ctxt, slot: ValueRef, t: &ty::t) -> result {
23492349
let re = drop_ty(cx, llptr, t);
23502350
let llty = val_ty(slot);
23512351
let llelemty = lib::llvm::llvm::LLVMGetElementType(llty);
2352-
re.bcx.build.Store(C_null(llelemty), slot);
2352+
call_bzero(cx, slot, llsize_of(llelemty), C_uint(1u));
23532353
ret re;
23542354
}
23552355

0 commit comments

Comments
 (0)