diff options
author | David Robillard <d@drobilla.net> | 2010-12-03 01:27:51 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-12-03 01:27:51 +0000 |
commit | 3ace07c3056cf9979053562cace439a6a1693b08 (patch) | |
tree | 500634a29967670c18e2797c07de26b89c67edaf /src/lift.cpp | |
parent | f25e8a63dd55a73aaf079f8198ccef048917060f (diff) | |
download | resp-3ace07c3056cf9979053562cace439a6a1693b08.tar.gz resp-3ace07c3056cf9979053562cace439a6a1693b08.tar.bz2 resp-3ace07c3056cf9979053562cace439a6a1693b08.zip |
Remove AST::constrain.
git-svn-id: http://svn.drobilla.net/resp/resp@287 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'src/lift.cpp')
-rw-r--r-- | src/lift.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lift.cpp b/src/lift.cpp index f39239e..df34d7a 100644 --- a/src/lift.cpp +++ b/src/lift.cpp @@ -41,8 +41,8 @@ lift_symbol(CEnv& cenv, Code& code, ASymbol* sym) throw() // Replace symbol with code to access free variable from closure return tup<ATuple>(sym->loc, cenv.penv.sym("."), - cenv.penv.sym("_me"), - new ALiteral<int32_t>(index, Cursor()), + cenv.penv.sym("_me"), + new ALiteral<int32_t>(T_INT32, index, Cursor()), NULL); } else { return sym; @@ -165,8 +165,8 @@ lift_call(CEnv& cenv, Code& code, ATuple* call) throw() } else { // Call to a closure, prepend code to access implementation function ATuple* getFn = tup<ATuple>(call->loc, cenv.penv.sym("."), - copy.head->head(), - new ALiteral<int32_t>(0, Cursor()), NULL); + copy.head->head(), + new ALiteral<int32_t>(T_INT32, 0, Cursor()), NULL); const AType* calleeT = cenv.type(copy.head->head()); assert(**calleeT->begin() == *cenv.tenv.Tup); const AType* implT = calleeT->list_ref(1)->as<const AType*>(); |