Ignore:
Timestamp:
Jun 12, 2023, 12:05:58 PM (2 years ago)
Author:
JiadaL <j82liang@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/ResolvExpr/CandidateFinder.cpp

    r2b78949 r8a930c03  
    373373                                                        unify(
    374374                                                                ttype, argType, newResult.env, newResult.need, newResult.have,
    375                                                                 newResult.open, symtab )
     375                                                                newResult.open )
    376376                                                ) {
    377377                                                        finalResults.emplace_back( std::move( newResult ) );
     
    444444                                )
    445445
    446                                 if ( unify( paramType, argType, env, need, have, open, symtab ) ) {
     446                                if ( unify( paramType, argType, env, need, have, open ) ) {
    447447                                        unsigned nextExpl = results[i].nextExpl + 1;
    448448                                        if ( nextExpl == expl.exprs.size() ) { nextExpl = 0; }
     
    463463                                        ast::OpenVarSet open = results[i].open;
    464464
    465                                         if ( unify( paramType, cnst->result, env, need, have, open, symtab ) ) {
     465                                        if ( unify( paramType, cnst->result, env, need, have, open ) ) {
    466466                                                results.emplace_back(
    467467                                                        i, new ast::DefaultArgExpr{ cnst->location, cnst }, std::move( env ),
     
    506506
    507507                                // attempt to unify types
    508                                 if ( unify( paramType, argType, env, need, have, open, symtab ) ) {
     508                                if ( unify( paramType, argType, env, need, have, open ) ) {
    509509                                        // add new result
    510510                                        results.emplace_back(
     
    750750                        const ast::Type * returnType = funcType->returns.front();
    751751                        if ( ! unify(
    752                                 returnType, targetType, funcEnv, funcNeed, funcHave, funcOpen, symtab )
     752                                returnType, targetType, funcEnv, funcNeed, funcHave, funcOpen )
    753753                        ) {
    754754                                // unification failed, do not pursue this candidate
     
    11591159
    11601160                        // 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 );
    11621162                        Cost thisCost =
    11631163                                (castExpr->isGenerated == ast::GeneratedFlag::GeneratedCast)
     
    14831483                                        if (
    14841484                                                unify(
    1485                                                         r2->expr->result, r3->expr->result, env, need, have, open, symtab,
     1485                                                        r2->expr->result, r3->expr->result, env, need, have, open,
    14861486                                                        common )
    14871487                                        ) {
     
    15561556                                if (
    15571557                                        unify(
    1558                                                 r1->expr->result, r2->expr->result, env, need, have, open, symtab,
     1558                                                r1->expr->result, r2->expr->result, env, need, have, open,
    15591559                                                common )
    15601560                                ) {
     
    16591659
    16601660                                // 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 );
    16621662                                (void) canUnify;
    16631663                                Cost thisCost = computeConversionCost( cand->expr->result, toType, cand->expr->get_lvalue(),
Note: See TracChangeset for help on using the changeset viewer.