Ignore:
Timestamp:
Jan 11, 2019, 2:16:53 PM (3 years ago)
Author:
Aaron Moss <a3moss@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
52ffa30
Parents:
e99e43f
Message:

Fix new cost model by boosting precedence of safe costs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    re99e43f rd97c3a4  
    12291229                                Alternative newAlt{
    12301230                                        restructureCast( alt.expr->clone(), toType, castExpr->isGenerated ),
    1231                                         alt.env, openVars, needAssertions, alt.cost, thisCost };
     1231                                        alt.env, openVars, needAssertions, alt.cost + thisCost, thisCost };
    12321232                                inferParameters( newAlt, back_inserter( candidates ) );
    12331233                        } // if
Note: See TracChangeset for help on using the changeset viewer.