diff options
Diffstat (limited to 'src/c.cpp')
-rw-r--r-- | src/c.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
@@ -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; |