We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3b3a71 commit 21efd07Copy full SHA for 21efd07
src/comp/middle/trans.rs
@@ -5932,8 +5932,12 @@ fn trans_spawn(&@block_ctxt cx,
5932
auto llfnptr = bcx.build.GEP(fnptr.val,
5933
[C_int(0), C_int(0)]);
5934
log_err "Casting llfnptr";
5935
- auto llfnptr_i = bcx.build.PointerCast(llfnptr,
5936
- T_int());
+ auto llfnptrptr_i = bcx.build.PointerCast(llfnptr,
+ 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
+
5941
log_err "Cassting llargs";
5942
auto llargs_i = bcx.build.PointerCast(llargs.val,
5943
T_int());
0 commit comments