Changeset a2eda27
- Timestamp:
- Nov 18, 2015, 4:21:37 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 258eb5c9
- Parents:
- d8847b7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/InstantiateGeneric.cc
rd8847b7 ra2eda27 23 23 #include "PolyMutator.h" 24 24 25 #include "SymTab/TypeEquality.h" 25 #include "ResolvExpr/typeops.h" 26 #include "SymTab/Indexer.h" 26 27 #include "SynTree/Declaration.h" 27 28 #include "SynTree/Mutator.h" … … 67 68 68 69 bool operator== (const ConcreteType& that) const { 70 SymTab::Indexer dummy; 71 69 72 if ( base != that.base ) return false; 70 73 if ( params.size() != that.params.size() ) return false; 71 74 for ( std::list< Type* >::const_iterator it = params.begin(), jt = that.params.begin(); it != params.end(); ++it, ++jt ) { 72 if ( ! SymTab::typeEquals(*it, *jt) ) return false;75 if ( ! ResolvExpr::typesCompatible( *it, *jt, dummy ) ) return false; 73 76 } 74 77 return true;
Note: See TracChangeset
for help on using the changeset viewer.