Changes in src/GenPoly/FindFunction.cc [6f49cdf:b4cd03b7]
- File:
-
- 1 edited
-
src/GenPoly/FindFunction.cc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/FindFunction.cc
r6f49cdf rb4cd03b7 55 55 TyVarMap::iterator var = tyVars.find( (*i)->get_name() ); 56 56 if ( var != tyVars.end() ) { 57 tyVars.erase( var ->first);57 tyVars.erase( var ); 58 58 } // if 59 59 } // for … … 61 61 62 62 Type * FindFunction::mutate( FunctionType *functionType ) { 63 tyVars.beginScope();63 TyVarMap oldTyVars = tyVars; 64 64 handleForall( functionType->get_forall() ); 65 65 mutateAll( functionType->get_returnVals(), *this ); … … 72 72 } // if 73 73 } // if 74 tyVars .endScope();74 tyVars = oldTyVars; 75 75 return ret; 76 76 } 77 77 78 78 Type * FindFunction::mutate( PointerType *pointerType ) { 79 tyVars.beginScope();79 TyVarMap oldTyVars = tyVars; 80 80 handleForall( pointerType->get_forall() ); 81 81 Type *ret = Mutator::mutate( pointerType ); 82 tyVars .endScope();82 tyVars = oldTyVars; 83 83 return ret; 84 84 }
Note:
See TracChangeset
for help on using the changeset viewer.