rustc: bzero in drop_slot

This commit is contained in:
Patrick Walton 2011-08-04 16:43:32 -07:00
parent fcec628203
commit 6c0297cfe7
1 changed files with 1 additions and 1 deletions

View File

@ -2349,7 +2349,7 @@ fn drop_slot(cx: &@block_ctxt, slot: ValueRef, t: &ty::t) -> result {
let re = drop_ty(cx, llptr, t);
let llty = val_ty(slot);
let llelemty = lib::llvm::llvm::LLVMGetElementType(llty);
re.bcx.build.Store(C_null(llelemty), slot);
call_bzero(cx, slot, llsize_of(llelemty), C_uint(1u));
ret re;
}