aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-11-25 18:28:15 -0800
committerGraydon Hoare <[email protected]>2010-11-25 18:28:15 -0800
commit3fd3270845a7892cab2bf7ad45a8e03f24d9f9aa (patch)
tree49ac36e72d9c3bbe15ba78552a41d5f4072b1dff /src
parentCast memcpy args to correct types. (diff)
downloadrust-3fd3270845a7892cab2bf7ad45a8e03f24d9f9aa.tar.xz
rust-3fd3270845a7892cab2bf7ad45a8e03f24d9f9aa.zip
Return memcpy src rather than falling through and failing.
Diffstat (limited to 'src')
-rw-r--r--src/comp/middle/trans.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 31dadcd1..73db9e05 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -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: " +