Changeset 93c10de for src/GenPoly
- Timestamp:
- Nov 24, 2022, 11:01:37 AM (3 years ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 82a90d4
- Parents:
- 78de1e5
- Location:
- src/GenPoly
- Files:
-
- 2 edited
-
GenPoly.cc (modified) (2 diffs)
-
GenPoly.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.cc
r78de1e5 r93c10de 783 783 const ast::FunctionType * function = getFunctionType( expr->func->result ); 784 784 assertf( function, "ApplicationExpr has non-function type: %s", toString( expr->func->result ).c_str() ); 785 TypeVarMap exprTyVars = { ast::TypeD ecl::Data() };785 TypeVarMap exprTyVars = { ast::TypeData() }; 786 786 makeTypeVarMap( function, exprTyVars ); 787 787 return needsBoxing( param, arg, exprTyVars, subst ); … … 793 793 794 794 void addToTypeVarMap( const ast::TypeInstType * type, TypeVarMap & typeVars ) { 795 typeVars.insert( *type, ast::TypeD ecl::Data( type->base ) );795 typeVars.insert( *type, ast::TypeData( type->base ) ); 796 796 } 797 797 -
src/GenPoly/GenPoly.h
r78de1e5 r93c10de 30 30 31 31 typedef ErasableScopedMap< std::string, TypeDecl::Data > TyVarMap; 32 using TypeVarMap = ErasableScopedMap< ast::Type InstType::TypeEnvKey, ast::TypeDecl::Data >;32 using TypeVarMap = ErasableScopedMap< ast::TypeEnvKey, ast::TypeData >; 33 33 34 34 /// Replaces a TypeInstType by its referrent in the environment, if applicable
Note:
See TracChangeset
for help on using the changeset viewer.