Changeset 954ef5b for src/ResolvExpr/AlternativeFinder.cc
- Timestamp:
- Oct 23, 2017, 5:39:11 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- f53836b
- Parents:
- aeef2bd
- git-author:
- Rob Schluntz <rschlunt@…> (10/23/17 17:37:05)
- git-committer:
- Rob Schluntz <rschlunt@…> (10/23/17 17:39:11)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
raeef2bd r954ef5b 180 180 throw SemanticError( "No reasonable alternatives for expression ", expr ); 181 181 } 182 for ( AltList::iterator i = alternatives.begin(); i != alternatives.end(); ++i ) {183 if ( adjust ) {184 adjustExprType( i->expr->get_result(), i->env, indexer );185 }186 }187 182 if ( prune ) { 188 183 PRINT( … … 206 201 std::cerr << "there are " << alternatives.size() << " alternatives after elimination" << std::endl; 207 202 ) 203 } 204 // adjust types after pruning so that types substituted by pruneAlternatives are correctly adjusted 205 for ( AltList::iterator i = alternatives.begin(); i != alternatives.end(); ++i ) { 206 if ( adjust ) { 207 adjustExprType( i->expr->get_result(), i->env, indexer ); 208 } 208 209 } 209 210
Note: See TracChangeset
for help on using the changeset viewer.