aboutsummaryrefslogtreecommitdiffstats
path: root/src/c.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/c.cpp')
-rw-r--r--src/c.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/c.cpp b/src/c.cpp
index 1237979..795a57f 100644
--- a/src/c.cpp
+++ b/src/c.cpp
@@ -168,10 +168,7 @@ CEngine::compileLiteral(CEnv& cenv, AST* lit)
CFunc
CEngine::compileFunction(CEnv& cenv, AFn* fn, const AType& argsT)
{
- //TEnv::GenericTypes::const_iterator gt = cenv.tenv.genericTypes.find(fn);
- //assert(gt != cenv.tenv.genericTypes.end());
CEngine* engine = reinterpret_cast<CEngine*>(cenv.engine());
- //AType* genericType = new AType(*gt->second);
AType* genericType = cenv.type(fn);
AType* thisType = genericType;
Subst argsSubst;
@@ -204,7 +201,7 @@ CEngine::compileFunction(CEnv& cenv, AFn* fn, const AType& argsT)
cenv.push();
Subst oldSubst = cenv.tsubst;
- cenv.tsubst = Subst::compose(cenv.tsubst, Subst::compose(argsSubst, fn->subst));
+ cenv.tsubst = Subst::compose(cenv.tsubst, argsSubst);
// Bind argument values in CEnv
vector<Value*> args;