Changeset 908cc83 for src/ResolvExpr


Ignore:
Timestamp:
Sep 10, 2016, 1:31:37 PM (9 years ago)
Author:
Rob Schluntz <rschlunt@…>
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:
8f7cea1
Parents:
5af62f1
Message:

make mass assignment resolve correctly

Location:
src/ResolvExpr
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/ResolvExpr/AlternativeFinder.cc

    r5af62f1 r908cc83  
    6464        }
    6565
     66        Cost sumCost( const AltList &in ) {
     67                Cost total;
     68                for ( AltList::const_iterator i = in.begin(); i != in.end(); ++i ) {
     69                        total += i->cost;
     70                }
     71                return total;
     72        }
     73
    6674        namespace {
    6775                void printAlts( const AltList &list, std::ostream &os, int indent = 0 ) {
     
    7684                                out.push_back( i->expr->clone() );
    7785                        }
    78                 }
    79 
    80                 Cost sumCost( const AltList &in ) {
    81                         Cost total;
    82                         for ( AltList::const_iterator i = in.begin(); i != in.end(); ++i ) {
    83                                 total += i->cost;
    84                         }
    85                         return total;
    8686                }
    8787
  • TabularUnified src/ResolvExpr/AlternativeFinder.h

    r5af62f1 r908cc83  
    109109                std::copy( alternatives.begin(), alternatives.end(), out );
    110110        }
     111
     112        Cost sumCost( const AltList &in );
    111113} // namespace ResolvExpr
    112114
Note: See TracChangeset for help on using the changeset viewer.