Skip to content

Commit 2471c29

Browse files
author
Eric Holk
committed
---
yaml --- r: 2821 b: refs/heads/master c: 21efd07 h: refs/heads/master i: 2819: f3292bb v: v3
1 parent a8bae02 commit 2471c29

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: e3b3a71e6aa2b8d8d4e5914eb6841caf5611271a
2+
refs/heads/master: 21efd07bc16c2e7614b5f37282d763d6de7d75bb

trunk/src/comp/middle/trans.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5932,8 +5932,12 @@ fn trans_spawn(&@block_ctxt cx,
59325932
auto llfnptr = bcx.build.GEP(fnptr.val,
59335933
[C_int(0), C_int(0)]);
59345934
log_err "Casting llfnptr";
5935-
auto llfnptr_i = bcx.build.PointerCast(llfnptr,
5936-
T_int());
5935+
auto llfnptrptr_i = bcx.build.PointerCast(llfnptr,
5936+
T_ptr(T_int()));
5937+
// We'd better dereference this one more time, since that one points into
5938+
// the symbol table or something.
5939+
auto llfnptr_i = bcx.build.Load(llfnptrptr_i);
5940+
59375941
log_err "Cassting llargs";
59385942
auto llargs_i = bcx.build.PointerCast(llargs.val,
59395943
T_int());

0 commit comments

Comments
 (0)