Changes in src/ResolvExpr/PolyCost.cc [982f95d:8e18b8e]
- File:
-
- 1 edited
-
src/ResolvExpr/PolyCost.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/PolyCost.cc
r982f95d r8e18b8e 17 17 #include "SymTab/Indexer.h" // for Indexer 18 18 #include "SynTree/Type.h" // for TypeInstType, Type 19 #include "TypeEnvironment.h" // for ClassRef, TypeEnvironment19 #include "TypeEnvironment.h" // for EqvClass, TypeEnvironment 20 20 21 21 namespace ResolvExpr { … … 39 39 40 40 void PolyCost::previsit(TypeInstType * typeInst) { 41 if ( ClassRefeqvClass = tenv.lookup( typeInst->name ) ) {42 if ( Type* boundTy = eqvClass.get_bound().type ) {43 if ( TypeInstType * otherTypeInst = dynamic_cast< TypeInstType* >( boundTy) ) {41 if ( const EqvClass *eqvClass = tenv.lookup( typeInst->name ) ) { 42 if ( eqvClass->type ) { 43 if ( TypeInstType * otherTypeInst = dynamic_cast< TypeInstType* >( eqvClass->type ) ) { 44 44 if ( indexer.lookupType( otherTypeInst->name ) ) { 45 45 // bound to opaque type
Note:
See TracChangeset
for help on using the changeset viewer.