Changeset 361bf01 for src/AST/TypeSubstitution.cpp
- Timestamp:
- Dec 11, 2020, 11:20:45 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 5b9a0ae
- Parents:
- a6e0e4c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/TypeSubstitution.cpp
ra6e0e4c r361bf01 166 166 } 167 167 168 void TypeSubstitution::Substituter::previsit( const ParameterizedType * ptype ) {168 void TypeSubstitution::Substituter::previsit( const FunctionType * ptype ) { 169 169 GuardValue( boundVars ); 170 170 // bind type variables from forall-qualifiers … … 180 180 // bind type variables from forall-qualifiers 181 181 if ( freeOnly ) { 182 for ( const TypeDecl * tyvar : type->forall ) {183 boundVars.insert( tyvar->name );184 } // for185 182 // bind type variables from generic type instantiations 186 183 if ( auto decl = type->aggr() ) {
Note: See TracChangeset
for help on using the changeset viewer.