Skip to content

Commit

Permalink
Return memcpy src rather than falling through and failing.
Browse files Browse the repository at this point in the history
  • Loading branch information
graydon committed Nov 26, 2010
1 parent a95dbde commit 3fd3270
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/comp/middle/trans.rs
Expand Up @@ -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: " +
Expand Down

0 comments on commit 3fd3270

Please sign in to comment.