Don't bother zeroing out slots in cleanups.

This commit is contained in:
Michael Sullivan 2011-08-08 15:50:32 -07:00
parent c0fc204112
commit 059c66b9f7

View File

@ -2359,11 +2359,7 @@ fn copy_ty(cx: &@block_ctxt, v: ValueRef, t: ty::t) -> result {
fn drop_slot(cx: &@block_ctxt, slot: ValueRef, t: &ty::t) -> result {
let llptr = load_if_immediate(cx, slot, t);
let re = drop_ty(cx, llptr, t);
let llty = val_ty(slot);
let llelemty = lib::llvm::llvm::LLVMGetElementType(llty);
call_bzero(cx, slot, llsize_of(llelemty), C_uint(1u));
ret re;
ret drop_ty(cx, llptr, t);
}
fn drop_ty(cx: &@block_ctxt, v: ValueRef, t: ty::t) -> result {