diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-05-25 17:18:33 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-05-30 21:23:34 -0700 |
| commit | 80dc2e11a12c0a77447b74ef3fea3eb3ba44faaa (patch) | |
| tree | 2ee687744354eeae3bab1dca7f10dd6d873ab922 /src | |
| parent | e4f5f235e40c1916b14ee59e7066574d2c102725 (diff) | |
| download | rust-80dc2e11a12c0a77447b74ef3fea3eb3ba44faaa.tar.gz rust-80dc2e11a12c0a77447b74ef3fea3eb3ba44faaa.zip | |
rustc: Remove the last use of upcall_shared_malloc
Diffstat (limited to 'src')
| -rw-r--r-- | src/rustc/middle/trans/closure.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rustc/middle/trans/closure.rs b/src/rustc/middle/trans/closure.rs index f1d0e4e8746..a3b2ab85d58 100644 --- a/src/rustc/middle/trans/closure.rs +++ b/src/rustc/middle/trans/closure.rs @@ -554,8 +554,8 @@ fn make_opaque_cbox_take_glue( let sz = Add(bcx, sz, shape::llsize_of(ccx, T_box_header(ccx))); // Allocate memory, update original ptr, and copy existing data - let malloc = ccx.upcalls.shared_malloc; - let cbox_out = Call(bcx, malloc, [sz]); + let malloc = ccx.upcalls.exchange_malloc; + let cbox_out = Call(bcx, malloc, [tydesc]); let cbox_out = PointerCast(bcx, cbox_out, llopaquecboxty); call_memmove(bcx, cbox_out, cbox_in, sz); Store(bcx, cbox_out, cboxptr); |
