Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/SpecializeNew.cpp

    r46da46b rbccd70a  
    1616#include "Specialize.h"
    1717
     18#include "AST/Copy.hpp"                  // for deepCopy
    1819#include "AST/Inspect.hpp"               // for isIntrinsicCallExpr
    1920#include "AST/Pass.hpp"                  // for Pass
     
    112113        using namespace ResolvExpr;
    113114        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 );
    118118        for ( const ast::OpenVarSet::value_type & openVar : openVars ) {
    119119                const ast::Type * boundType = subs->lookup( openVar.first );
     
    125125                        if ( closedVars.find( *inst ) == closedVars.end() ) {
    126126                                return true;
    127                         }
    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.