- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/AlternativeFinder.cc
rca946a4 r4b0f997 766 766 } // if 767 767 } // for 768 // function may return struct or union value, in which case we need to add alternatives for implicit conversions to each of the anonymous members 769 for ( const Alternative & alt : alternatives ) { 770 addAnonConversions( alt ); 771 } 768 772 769 773 candidates.clear(); … … 771 775 772 776 findMinCost( candidates.begin(), candidates.end(), std::back_inserter( alternatives ) ); 773 774 // function may return struct or union value, in which case we need to add alternatives for implicit775 // conversions to each of the anonymous members, must happen after findMinCost since anon conversions776 // are never the cheapest expression777 for ( const Alternative & alt : alternatives ) {778 addAnonConversions( alt );779 }780 777 781 778 if ( alternatives.empty() && targetType && ! targetType->isVoid() ) {
Note: See TracChangeset
for help on using the changeset viewer.