rustc: bzero in zero_alloca. Shaves off a second or three.

This commit is contained in:
Patrick Walton 2011-08-04 16:33:04 -07:00
parent cf9c0f9d93
commit 4d180793f0

View file

@ -5854,7 +5854,7 @@ fn zero_alloca(cx: &@block_ctxt, llptr: ValueRef, t: ty::t) -> result {
bcx = call_bzero(llalign.bcx, llptr, llsz.val, llalign.val).bcx;
} else {
let llty = type_of(bcx_ccx(bcx), cx.sp, t);
bcx.build.Store(C_null(llty), llptr);
bcx = call_bzero(cx, llptr, llsize_of(llty), C_uint(1u)).bcx;
}
ret rslt(bcx, llptr);
}