提交 77670e84 编写于 作者: G Graydon Hoare

Fix bug in llvm type signature of function items; enable three more tests.

上级 eaf9df2d
......@@ -517,6 +517,9 @@ TEST_XFAILS_LLVM := $(TASK_XFAILS) \
TEST_XFAILS_SELF := $(filter-out \
$(addprefix test/run-pass/, \
bool-not.rs \
dead-code-one-arm-if.rs \
hello.rs \
int.rs \
item-name-overload.rs \
multiline-comment.rs \
......
......@@ -280,7 +280,7 @@ fn type_of_inner(@trans_ctxt cx, @typeck.ty t) -> TypeRef {
ret T_struct(tys);
}
case (typeck.ty_fn(?args, ?out)) {
let vec[TypeRef] atys = vec();
let vec[TypeRef] atys = vec(T_taskptr());
for (typeck.arg arg in args) {
let TypeRef t = type_of(cx, arg.ty);
alt (arg.mode) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册