diff options
| author | Graydon Hoare <[email protected]> | 2010-11-20 22:05:17 -0800 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-11-20 22:05:17 -0800 |
| commit | 77670e84de5edec73883218f5da3005952b53ea8 (patch) | |
| tree | a5cc8c79ec53c716f7889c6b1772681b582b30dd | |
| parent | Remove dead code. (diff) | |
| download | rust-77670e84de5edec73883218f5da3005952b53ea8.tar.xz rust-77670e84de5edec73883218f5da3005952b53ea8.zip | |
Fix bug in llvm type signature of function items; enable three more tests.
| -rw-r--r-- | src/Makefile | 3 | ||||
| -rw-r--r-- | src/comp/middle/trans.rs | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile index 74e2cd85..9c4a746a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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 \ diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs index 9cf08e6b..fb4f6379 100644 --- a/src/comp/middle/trans.rs +++ b/src/comp/middle/trans.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) { |