Return memcpy src rather than falling through and failing.

This commit is contained in:
Graydon Hoare 2010-11-25 18:28:15 -08:00
parent a95dbdef70
commit 3fd3270845

View file

@ -675,6 +675,7 @@ fn copy_ty(@block_ctxt cx,
}
auto llty = type_of(cx.fcx.ccx, t);
r = build_memcpy(r.bcx, dst, src, llty);
ret res(r.bcx, src);
}
cx.fcx.ccx.sess.bug("unexpected type in trans.copy_ty: " +