Changes in src/GenPoly/SpecializeNew.cpp [bccd70a:8f31be6]
- File:
-
- 1 edited
-
src/GenPoly/SpecializeNew.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/SpecializeNew.cpp
rbccd70a r8f31be6 104 104 105 105 bool needsPolySpecialization( 106 const ast::Type * formalType,106 const ast::Type * /*formalType*/, 107 107 const ast::Type * actualType, 108 108 const ast::TypeSubstitution * subs ) { … … 113 113 using namespace ResolvExpr; 114 114 ast::OpenVarSet openVars, closedVars; 115 ast::AssertionSet need, have; 116 findOpenVars( formalType, openVars, closedVars, need, have, FirstClosed ); 117 findOpenVars( actualType, openVars, closedVars, need, have, FirstOpen ); 115 ast::AssertionSet need, have; // unused 116 ast::TypeEnvironment env; // unused 117 // findOpenVars( formalType, openVars, closedVars, need, have, FirstClosed ); 118 findOpenVars( actualType, openVars, closedVars, need, have, env, FirstOpen ); 118 119 for ( const ast::OpenVarSet::value_type & openVar : openVars ) { 119 120 const ast::Type * boundType = subs->lookup( openVar.first ); … … 125 126 if ( closedVars.find( *inst ) == closedVars.end() ) { 126 127 return true; 128 } else { 129 assertf(false, "closed: %s", inst->name.c_str()); 127 130 } 128 131 // Otherwise, the variable is bound to a concrete type.
Note:
See TracChangeset
for help on using the changeset viewer.