Changeset c341b57 for src/ResolvExpr/ConversionCost.cpp
- Timestamp:
- Feb 13, 2025, 5:52:15 PM (8 months ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/ConversionCost.cpp
r502ff9e rc341b57 518 518 auto srcDecl = src->base; 519 519 auto dstDecl = dst->base; 520 if ( srcDecl->name == dstDecl->name) return Cost::safe;520 if ( srcDecl->name == dstDecl->name ) return Cost::safe; 521 521 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; 525 525 } 526 526 return minCost;
Note:
See TracChangeset
for help on using the changeset viewer.