File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: e3b3a71e6aa2b8d8d4e5914eb6841caf5611271a
2
+ refs/heads/master: 21efd07bc16c2e7614b5f37282d763d6de7d75bb
Original file line number Diff line number Diff line change @@ -5932,8 +5932,12 @@ fn trans_spawn(&@block_ctxt cx,
5932
5932
auto llfnptr = bcx. build. GEP ( fnptr. val,
5933
5933
[ C_int ( 0 ) , C_int ( 0 ) ] ) ;
5934
5934
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
+
5937
5941
log_err "Cassting llargs" ;
5938
5942
auto llargs_i = bcx. build. PointerCast ( llargs. val,
5939
5943
T_int ( ) ) ;
You can’t perform that action at this time.
0 commit comments