Skip to content

Commit 7d8efc6

Browse files
committed
---
yaml --- r: 904 b: refs/heads/master c: 2ff0662 h: refs/heads/master v: v3
1 parent a3ecbb4 commit 7d8efc6

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
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: 1ff88982fe07b341c79345277f857211eccc5a5e
2+
refs/heads/master: 2ff0662eaef0af2a7a0173e5da53fe271c217e38

trunk/src/comp/middle/trans.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -917,13 +917,17 @@ impure fn trans_expr(@block_ctxt cx, &ast.expr e) -> result {
917917
case (ast.item_fn(_, ?ff, _, _)) {
918918
outptr = cx.build.Alloca(type_of(cx.fcx.tcx, ff.output));
919919
}
920+
case (_) {
921+
cx.fcx.tcx.sess.unimpl("call to non-item");
922+
}
920923
}
921924
auto args_res = trans_exprs(f_res._0.bcx, args);
922925
auto llargs = vec(outptr,
923926
cx.fcx.lltaskptr);
924927
llargs += args_res._1;
928+
auto call_val = args_res._0.build.Call(f_res._0.val, llargs);
925929
ret res(args_res._0,
926-
args_res._0.build.Call(f_res._0.val, llargs));
930+
args_res._0.build.Load(outptr));
927931
}
928932

929933
}

0 commit comments

Comments
 (0)