Changeset a32b204 for translator/GenPoly/FindFunction.cc
- Timestamp:
- May 17, 2015, 1:19:35 PM (9 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, ctor, deferred_resn, demangler, enum, forall-pointer-decay, gc_noraii, jacob/cs343-translation, jenkins-sandbox, master, memory, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, string, with_gc
- Children:
- 0dd3a2f
- Parents:
- b87a5ed
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
translator/GenPoly/FindFunction.cc
rb87a5ed ra32b204 52 52 FindFunction::handleForall( const std::list< TypeDecl* > &forall ) 53 53 { 54 for ( std::list< TypeDecl* >::const_iterator i = forall.begin(); i != forall.end(); ++i ) {54 for ( std::list< TypeDecl* >::const_iterator i = forall.begin(); i != forall.end(); ++i ) { 55 55 TyVarMap::iterator var = tyVars.find( (*i)->get_name() ); 56 if ( var != tyVars.end() ) {56 if ( var != tyVars.end() ) { 57 57 tyVars.erase( var ); 58 58 } … … 67 67 mutateAll( functionType->get_returnVals(), *this ); 68 68 Type *ret = functionType; 69 if ( predicate( functionType, tyVars ) ) {69 if ( predicate( functionType, tyVars ) ) { 70 70 functions.push_back( functionType ); 71 if ( replaceMode ) {71 if ( replaceMode ) { 72 72 ret = new FunctionType( Type::Qualifiers(), true ); 73 73 }
Note: See TracChangeset
for help on using the changeset viewer.