commit
c97acc30c4
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue