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

This commit is contained in:
Graydon Hoare 2010-11-20 22:05:17 -08:00
parent eaf9df2dc3
commit 77670e84de
2 changed files with 4 additions and 1 deletions

View file

@ -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) {