Ignore:
Timestamp:
Jun 11, 2019, 1:36:00 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
3da7c19
Parents:
396037d
Message:

More resolver porting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/Candidate.hpp

    r396037d rd57e349  
    4242        ast::OpenVarSet open;      ///< Open variables for environment
    4343        ast::AssertionList need;   ///< Assertions which need to be resolved
     44
     45        Candidate() = default;
    4446};
    4547
     
    4951/// List of candidates
    5052using CandidateList = std::vector< CandidateRef >;
     53
     54/// Holdover behaviour from old `findMinCost` -- xxx -- can maybe be eliminated?
     55static inline void promoteCvtCost( CandidateList & candidates ) {
     56        for ( CandidateRef & r : candidates ) {
     57                r->cost = r->cvtCost;
     58        }
     59}
    5160
    5261void print( std::ostream & os, const Candidate & cand, Indenter indent = {} );
Note: See TracChangeset for help on using the changeset viewer.