Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/GenPoly/FindFunction.cc

    r6f49cdf rb4cd03b7  
    5555                        TyVarMap::iterator var = tyVars.find( (*i)->get_name() );
    5656                        if ( var != tyVars.end() ) {
    57                                 tyVars.erase( var->first );
     57                                tyVars.erase( var );
    5858                        } // if
    5959                } // for
     
    6161
    6262        Type * FindFunction::mutate( FunctionType *functionType ) {
    63                 tyVars.beginScope();
     63                TyVarMap oldTyVars = tyVars;
    6464                handleForall( functionType->get_forall() );
    6565                mutateAll( functionType->get_returnVals(), *this );
     
    7272                        } // if
    7373                } // if
    74                 tyVars.endScope();
     74                tyVars = oldTyVars;
    7575                return ret;
    7676        }
    7777
    7878        Type * FindFunction::mutate( PointerType *pointerType ) {
    79                 tyVars.beginScope();
     79                TyVarMap oldTyVars = tyVars;
    8080                handleForall( pointerType->get_forall() );
    8181                Type *ret = Mutator::mutate( pointerType );
    82                 tyVars.endScope();
     82                tyVars = oldTyVars;
    8383                return ret;
    8484        }
Note: See TracChangeset for help on using the changeset viewer.