mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-10 14:02:57 +00:00
rustc: bzero in zero_alloca. Shaves off a second or three.
This commit is contained in:
parent
cf9c0f9d93
commit
4d180793f0
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user