Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/SpecializeNew.cpp

    rbccd70a r46da46b  
    1616#include "Specialize.h"
    1717
    18 #include "AST/Copy.hpp"                  // for deepCopy
    1918#include "AST/Inspect.hpp"               // for isIntrinsicCallExpr
    2019#include "AST/Pass.hpp"                  // for Pass
     
    113112        using namespace ResolvExpr;
    114113        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 );
    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());
    127130                        }
    128131                // Otherwise, the variable is bound to a concrete type.
Note: See TracChangeset for help on using the changeset viewer.