Skip to content

Commit 3fd3270

Browse files
committed
Return memcpy src rather than falling through and failing.
1 parent a95dbde commit 3fd3270

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -675,6 +675,7 @@ fn copy_ty(@block_ctxt cx,
675675
}
676676
auto llty = type_of(cx.fcx.ccx, t);
677677
r = build_memcpy(r.bcx, dst, src, llty);
678+
ret res(r.bcx, src);
678679
}
679680

680681
cx.fcx.ccx.sess.bug("unexpected type in trans.copy_ty: " +

0 commit comments

Comments
 (0)