Auto merge of #27944 - dotdash:zst_memcpy, r=eddyb

r? @eddyb
This commit is contained in:
bors 2015-08-23 12:16:24 +00:00
commit c97acc30c4

View File

@ -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);