Changes in / [9d48a17:389528b0]


Ignore:
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/AlternativeFinder.cc

    r9d48a17 r389528b0  
    897897                // sum cost and accumulate actuals
    898898                std::list<Expression*>& args = appExpr->get_args();
    899                 Cost cost = Cost::zero;
     899                Cost cost = func.cost;
    900900                const ArgPack* pack = &result;
    901901                while ( pack->expr ) {
  • src/SynTree/Expression.cc

    r9d48a17 r389528b0  
    356356        Type * res = member->get_type()->clone();
    357357        sub.apply( res );
    358         set_result( res );
    359         get_result()->set_lvalue( true );
     358        result = res;
     359        result->set_lvalue( true );
     360        result->get_qualifiers() |= aggregate->result->get_qualifiers();
    360361}
    361362
Note: See TracChangeset for help on using the changeset viewer.