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