Changes in src/GenPoly/GenPoly.cc [3e5dd913:361bf01]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.cc
r3e5dd913 r361bf01 115 115 if (!env) return type; 116 116 if (auto typeInst = dynamic_cast<const ast::TypeInstType*> (type)) { 117 auto newType = env->lookup(typeInst );117 auto newType = env->lookup(typeInst->name); 118 118 if (newType) return newType; 119 119 } … … 172 172 173 173 if ( auto typeInst = dynamic_cast< const ast::TypeInstType * >( type ) ) { 174 return tyVars.find(typeInst-> typeString()) != tyVars.end() ? type : nullptr;174 return tyVars.find(typeInst->name) != tyVars.end() ? type : nullptr; 175 175 } else if ( auto arrayType = dynamic_cast< const ast::ArrayType * >( type ) ) { 176 176 return isPolyType( arrayType->base, env ); … … 552 552 } 553 553 554 void addToTyVarMap( const ast::Type InstType* tyVar, TyVarMap & tyVarMap) {555 tyVarMap.insert(tyVar-> typeString(), convData(ast::TypeDecl::Data{tyVar->base}));554 void addToTyVarMap( const ast::TypeDecl * tyVar, TyVarMap & tyVarMap) { 555 tyVarMap.insert(tyVar->name, convData(ast::TypeDecl::Data{tyVar})); 556 556 } 557 557
Note: See TracChangeset
for help on using the changeset viewer.