Skip to content

Commit a95df59

Browse files
committed
---
yaml --- r: 1571 b: refs/heads/master c: 02f669c h: refs/heads/master i: 1569: 3c31696 1567: 7a0063b v: v3
1 parent e37d7f8 commit a95df59

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 10d8b4e861faedb734636a80dc4963392f1f82c5
2+
refs/heads/master: 02f669ca6759f94deb87fb8dc3303eb08544c5a0

trunk/src/comp/middle/trans.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -832,7 +832,7 @@ fn decl_upcall_glue(ModuleRef llmod, type_names tn, uint _n) -> ValueRef {
832832
let str s = abi.upcall_glue_name(n);
833833
let vec[TypeRef] args =
834834
vec(T_int(), // callee
835-
T_taskptr(tn)) // taskptr
835+
T_int()) // taskptr
836836
+ _vec.init_elt[TypeRef](T_int(), n as uint);
837837

838838
ret decl_fastcall_fn(llmod, s, T_fn(args, T_int()));
@@ -856,7 +856,8 @@ fn trans_upcall(@block_ctxt cx, str name, vec[ValueRef] args) -> result {
856856
llupcall = llvm.LLVMConstPointerCast(llupcall, T_int());
857857

858858
let ValueRef llglue = cx.fcx.ccx.glues.upcall_glues.(n);
859-
let vec[ValueRef] call_args = vec(llupcall, cx.fcx.lltaskptr);
859+
let vec[ValueRef] call_args = vec(llupcall);
860+
call_args += cx.build.PtrToInt(cx.fcx.lltaskptr, T_int());
860861

861862
for (ValueRef a in args) {
862863
call_args += cx.build.ZExtOrBitCast(a, T_int());

0 commit comments

Comments
 (0)