Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/SpecializeNew.cpp

    r8f31be6 rbccd70a  
    104104
    105105bool needsPolySpecialization(
    106                 const ast::Type * /*formalType*/,
     106                const ast::Type * formalType,
    107107                const ast::Type * actualType,
    108108                const ast::TypeSubstitution * subs ) {
     
    113113        using namespace ResolvExpr;
    114114        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 );
    119118        for ( const ast::OpenVarSet::value_type & openVar : openVars ) {
    120119                const ast::Type * boundType = subs->lookup( openVar.first );
     
    126125                        if ( closedVars.find( *inst ) == closedVars.end() ) {
    127126                                return true;
    128                         } else {
    129                                 assertf(false, "closed: %s", inst->name.c_str());
    130127                        }
    131128                // Otherwise, the variable is bound to a concrete type.
Note: See TracChangeset for help on using the changeset viewer.