Return memcpy src rather than falling through and failing.
This commit is contained in:
parent
a95dbdef70
commit
3fd3270845
1 changed files with 1 additions and 0 deletions
|
@ -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: " +
|
||||
|
|
Loading…
Reference in a new issue