diff options
| author | Graydon Hoare <[email protected]> | 2010-11-25 18:28:15 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-11-25 18:28:15 -0800 |
| commit | 3fd3270845a7892cab2bf7ad45a8e03f24d9f9aa (patch) | |
| tree | 49ac36e72d9c3bbe15ba78552a41d5f4072b1dff | |
| parent | Cast memcpy args to correct types. (diff) | |
| download | rust-3fd3270845a7892cab2bf7ad45a8e03f24d9f9aa.tar.xz rust-3fd3270845a7892cab2bf7ad45a8e03f24d9f9aa.zip | |
Return memcpy src rather than falling through and failing.
| -rw-r--r-- | src/comp/middle/trans.rs | 1 |
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: " + |