rustc: Remove the last use of upcall_shared_malloc
This commit is contained in:
parent
e4f5f235e4
commit
80dc2e11a1
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue