Ignore:
Timestamp:
Jul 20, 2018, 2:13:20 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
new-env
Children:
f89a111
Parents:
d318a18
Message:

Fixed infinite loop bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/SynTree/TypeSubstitution.h

    rd318a18 reff03a94  
    126126// definitition must happen after PassVisitor is included so that WithGuards can be used
    127127struct TypeSubstitution::Substituter : public WithGuards, public WithVisitorRef<Substituter> {
    128                 Substituter( TypeSubstitution & sub, bool freeOnly ) : sub( sub ), freeOnly( freeOnly ) {}
     128                Substituter( TypeSubstitution & sub, bool freeOnly )
     129                        : sub( sub ), freeOnly( freeOnly ), boundVars(), equivVars() {}
    129130
    130131                Type * postmutate( TypeInstType * aggregateUseType );
     
    144145                typedef std::set< std::string > BoundVarsType;
    145146                BoundVarsType boundVars;
     147                std::vector<TypeInstType*> equivVars;  ///< equivalent names of type variables
    146148};
    147149
Note: See TracChangeset for help on using the changeset viewer.