Don't bother zeroing out slots in cleanups.
This commit is contained in:
parent
c0fc204112
commit
059c66b9f7
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user