Ignore:
Timestamp:
Feb 13, 2025, 5:52:15 PM (8 months ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
ef9f11c
Parents:
502ff9e (diff), 53f4b55 (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/ConversionCost.cpp

    r502ff9e rc341b57  
    518518        auto srcDecl = src->base;
    519519        auto dstDecl = dst->base;
    520         if (srcDecl->name == dstDecl->name) return Cost::safe;
     520        if ( srcDecl->name == dstDecl->name ) return Cost::safe;
    521521        Cost minCost = Cost::infinity;
    522         for (auto child: dstDecl->inlinedDecl) {
    523                 Cost c = enumCastCost(src, child, symtab, env) + Cost::safe;
    524                 if (c<minCost) minCost = c;
     522        for ( auto child : dstDecl->inlinedDecl ) {
     523                Cost c = enumCastCost( src, child, symtab, env ) + Cost::safe;
     524                if ( c < minCost ) minCost = c;
    525525        }
    526526        return minCost;
Note: See TracChangeset for help on using the changeset viewer.