Skip to content

Commit 059c66b

Browse files
committed
Don't bother zeroing out slots in cleanups.
1 parent c0fc204 commit 059c66b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2359,11 +2359,7 @@ fn copy_ty(cx: &@block_ctxt, v: ValueRef, t: ty::t) -> result {
23592359

23602360
fn drop_slot(cx: &@block_ctxt, slot: ValueRef, t: &ty::t) -> result {
23612361
let llptr = load_if_immediate(cx, slot, t);
2362-
let re = drop_ty(cx, llptr, t);
2363-
let llty = val_ty(slot);
2364-
let llelemty = lib::llvm::llvm::LLVMGetElementType(llty);
2365-
call_bzero(cx, slot, llsize_of(llelemty), C_uint(1u));
2366-
ret re;
2362+
ret drop_ty(cx, llptr, t);
23672363
}
23682364

23692365
fn drop_ty(cx: &@block_ctxt, v: ValueRef, t: ty::t) -> result {

0 commit comments

Comments
 (0)