Changeset 54043f4
- Timestamp:
- Feb 27, 2018, 4:52:10 PM (7 years ago)
- 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:
- 86e84e4
- Parents:
- eddb399
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
reddb399 r54043f4 567 567 //if ( newNeedParents[ curDecl->get_uniqueId() ][ candDecl->get_uniqueId() ]++ > recursionParentLimit ) continue; 568 568 569 Expression *varExpr = data.combine( newerAlt.c ost );569 Expression *varExpr = data.combine( newerAlt.cvtCost ); 570 570 delete varExpr->get_result(); 571 571 varExpr->set_result( adjType->clone() ); … … 1373 1373 Cost cost = Cost::zero; 1374 1374 Expression * newExpr = data.combine( cost ); 1375 alternatives.push_back( Alternative( newExpr, env, Cost::zero ) ); // xxx1375 alternatives.push_back( Alternative( newExpr, env, Cost::zero, cost ) ); 1376 1376 PRINT( 1377 1377 std::cerr << "decl is "; … … 1488 1488 Cost cost = Cost::zero; 1489 1489 Expression * newExpr = data.combine( cost ); 1490 alternatives.push_back( Alternative( new AttrExpr( newExpr, argType->clone() ), env, cost ) );1490 alternatives.push_back( Alternative( new AttrExpr( newExpr, argType->clone() ), env, Cost::zero, cost ) ); 1491 1491 for ( DeclarationWithType * retVal : function->returnVals ) { 1492 1492 alternatives.back().expr->result = retVal->get_type()->clone(); … … 1527 1527 Cost cost = Cost::zero; 1528 1528 Expression * newExpr = data.combine( cost ); 1529 alternatives.push_back( Alternative( newExpr, env, cost ) );1529 alternatives.push_back( Alternative( newExpr, env, Cost::zero, cost ) ); 1530 1530 renameTypes( alternatives.back().expr ); 1531 1531 } // for
Note: See TracChangeset
for help on using the changeset viewer.