Changes in src/GenPoly/SpecializeNew.cpp [bccd70a:46da46b]
- File:
-
- 1 edited
-
src/GenPoly/SpecializeNew.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/SpecializeNew.cpp
rbccd70a r46da46b 16 16 #include "Specialize.h" 17 17 18 #include "AST/Copy.hpp" // for deepCopy19 18 #include "AST/Inspect.hpp" // for isIntrinsicCallExpr 20 19 #include "AST/Pass.hpp" // for Pass … … 113 112 using namespace ResolvExpr; 114 113 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 ); 114 ast::AssertionSet need, have; // unused 115 ast::TypeEnvironment env; // unused 116 // findOpenVars( formalType, openVars, closedVars, need, have, FirstClosed ); 117 findOpenVars( actualType, openVars, closedVars, need, have, env, FirstOpen ); 118 118 for ( const ast::OpenVarSet::value_type & openVar : openVars ) { 119 119 const ast::Type * boundType = subs->lookup( openVar.first ); … … 125 125 if ( closedVars.find( *inst ) == closedVars.end() ) { 126 126 return true; 127 } 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.