Changeset a32b204 for translator/Tuples/TupleAssignment.h
- 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/Tuples/TupleAssignment.h
rb87a5ed ra32b204 102 102 // select the alternatives that have the minimum parameter cost 103 103 Cost minCost = Cost::infinity; 104 for ( AltList::iterator i = begin; i != end; ++i ) {105 if ( i->cost < minCost ) {104 for ( AltList::iterator i = begin; i != end; ++i ) { 105 if ( i->cost < minCost ) { 106 106 minCost = i->cost; 107 107 i->cost = i->cvtCost; 108 108 alternatives.clear(); 109 109 alternatives.push_back( *i ); 110 } else if ( i->cost == minCost ) {110 } else if ( i->cost == minCost ) { 111 111 i->cost = i->cvtCost; 112 112 alternatives.push_back( *i );
Note: See TracChangeset
for help on using the changeset viewer.