Skip to content

Commit 80dc2e1

Browse files
committed
rustc: Remove the last use of upcall_shared_malloc
1 parent e4f5f23 commit 80dc2e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rustc/middle/trans/closure.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -554,8 +554,8 @@ fn make_opaque_cbox_take_glue(
554554
let sz = Add(bcx, sz, shape::llsize_of(ccx, T_box_header(ccx)));
555555

556556
// Allocate memory, update original ptr, and copy existing data
557-
let malloc = ccx.upcalls.shared_malloc;
558-
let cbox_out = Call(bcx, malloc, [sz]);
557+
let malloc = ccx.upcalls.exchange_malloc;
558+
let cbox_out = Call(bcx, malloc, [tydesc]);
559559
let cbox_out = PointerCast(bcx, cbox_out, llopaquecboxty);
560560
call_memmove(bcx, cbox_out, cbox_in, sz);
561561
Store(bcx, cbox_out, cboxptr);

0 commit comments

Comments
 (0)