Changeset 8a930c03 for src/ResolvExpr/CandidateFinder.cpp
- Timestamp:
- Jun 12, 2023, 12:05:58 PM (2 years ago)
- Branches:
- master
- Children:
- fec8bd1
- Parents:
- 2b78949 (diff), 38e266ca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.cpp
r2b78949 r8a930c03 373 373 unify( 374 374 ttype, argType, newResult.env, newResult.need, newResult.have, 375 newResult.open , symtab)375 newResult.open ) 376 376 ) { 377 377 finalResults.emplace_back( std::move( newResult ) ); … … 444 444 ) 445 445 446 if ( unify( paramType, argType, env, need, have, open , symtab) ) {446 if ( unify( paramType, argType, env, need, have, open ) ) { 447 447 unsigned nextExpl = results[i].nextExpl + 1; 448 448 if ( nextExpl == expl.exprs.size() ) { nextExpl = 0; } … … 463 463 ast::OpenVarSet open = results[i].open; 464 464 465 if ( unify( paramType, cnst->result, env, need, have, open , symtab) ) {465 if ( unify( paramType, cnst->result, env, need, have, open ) ) { 466 466 results.emplace_back( 467 467 i, new ast::DefaultArgExpr{ cnst->location, cnst }, std::move( env ), … … 506 506 507 507 // attempt to unify types 508 if ( unify( paramType, argType, env, need, have, open , symtab) ) {508 if ( unify( paramType, argType, env, need, have, open ) ) { 509 509 // add new result 510 510 results.emplace_back( … … 750 750 const ast::Type * returnType = funcType->returns.front(); 751 751 if ( ! unify( 752 returnType, targetType, funcEnv, funcNeed, funcHave, funcOpen , symtab)752 returnType, targetType, funcEnv, funcNeed, funcHave, funcOpen ) 753 753 ) { 754 754 // unification failed, do not pursue this candidate … … 1159 1159 1160 1160 // unification run for side-effects 1161 unify( toType, cand->expr->result, cand->env, need, have, open , symtab);1161 unify( toType, cand->expr->result, cand->env, need, have, open ); 1162 1162 Cost thisCost = 1163 1163 (castExpr->isGenerated == ast::GeneratedFlag::GeneratedCast) … … 1483 1483 if ( 1484 1484 unify( 1485 r2->expr->result, r3->expr->result, env, need, have, open, symtab,1485 r2->expr->result, r3->expr->result, env, need, have, open, 1486 1486 common ) 1487 1487 ) { … … 1556 1556 if ( 1557 1557 unify( 1558 r1->expr->result, r2->expr->result, env, need, have, open, symtab,1558 r1->expr->result, r2->expr->result, env, need, have, open, 1559 1559 common ) 1560 1560 ) { … … 1659 1659 1660 1660 // unification run for side-effects 1661 bool canUnify = unify( toType, cand->expr->result, env, need, have, open , symtab);1661 bool canUnify = unify( toType, cand->expr->result, env, need, have, open ); 1662 1662 (void) canUnify; 1663 1663 Cost thisCost = computeConversionCost( cand->expr->result, toType, cand->expr->get_lvalue(),
Note:
See TracChangeset
for help on using the changeset viewer.