mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
commit
c97acc30c4
@ -956,6 +956,11 @@ pub fn memcpy_ty<'blk, 'tcx>(bcx: Block<'blk, 'tcx>,
|
||||
t: Ty<'tcx>) {
|
||||
let _icx = push_ctxt("memcpy_ty");
|
||||
let ccx = bcx.ccx();
|
||||
|
||||
if type_is_zero_size(ccx, t) {
|
||||
return;
|
||||
}
|
||||
|
||||
if t.is_structural() {
|
||||
let llty = type_of::type_of(ccx, t);
|
||||
let llsz = llsize_of(ccx, llty);
|
||||
|
Loading…
Reference in New Issue
Block a user