Changes in src/GenPoly/SpecializeNew.cpp [46da46b:bccd70a]
- File:
-
- 1 edited
-
src/GenPoly/SpecializeNew.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/SpecializeNew.cpp
r46da46b rbccd70a 16 16 #include "Specialize.h" 17 17 18 #include "AST/Copy.hpp" // for deepCopy 18 19 #include "AST/Inspect.hpp" // for isIntrinsicCallExpr 19 20 #include "AST/Pass.hpp" // for Pass … … 112 113 using namespace ResolvExpr; 113 114 ast::OpenVarSet openVars, closedVars; 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 ); 115 ast::AssertionSet need, have; 116 findOpenVars( formalType, openVars, closedVars, need, have, FirstClosed ); 117 findOpenVars( actualType, openVars, closedVars, need, have, 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());130 127 } 131 128 // Otherwise, the variable is bound to a concrete type.
Note:
See TracChangeset
for help on using the changeset viewer.