Skip to content

Commit 4080984

Browse files
committed
---
yaml --- r: 10161 b: refs/heads/snap-stage3 c: 80dc2e1 h: refs/heads/master i: 10159: e3d511b v: v3
1 parent 8138da4 commit 4080984

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: e4f5f235e40c1916b14ee59e7066574d2c102725
4+
refs/heads/snap-stage3: 80dc2e11a12c0a77447b74ef3fea3eb3ba44faaa
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/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)