Changeset 2908f08 for src/ResolvExpr/CandidateFinder.cpp
- Timestamp:
- Nov 17, 2023, 3:03:51 PM (11 months ago)
- Branches:
- master
- Children:
- f7f997a
- Parents:
- 41606df1
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.cpp
r41606df1 r2908f08 751 751 const ast::Type * returnType = funcType->returns.front(); 752 752 if ( selfFinder.strictMode ) { 753 if ( ! 753 if ( !unifyExact( 754 754 returnType, targetType, funcEnv, funcNeed, funcHave, funcOpen, noWiden() ) // xxx - is no widening correct? 755 755 ) { … … 757 757 return; 758 758 } 759 } 760 else { 761 if ( ! unify( 759 } else { 760 if ( !unify( 762 761 returnType, targetType, funcEnv, funcNeed, funcHave, funcOpen ) 763 762 ) { … … 1109 1108 intrinsicResult.emplace_back(std::move(withFunc)); 1110 1109 } 1111 } 1112 else { 1110 } else { 1113 1111 candidates.emplace_back( std::move( withFunc ) ); 1114 1112 } … … 1156 1154 1157 1155 for ( CandidateRef & r : finder.candidates ) { 1158 if ( ! 1156 if ( !isLvalue( r->expr ) ) continue; 1159 1157 addCandidate( *r, new ast::AddressExpr{ addressExpr->location, r->expr } ); 1160 1158 }
Note: See TracChangeset
for help on using the changeset viewer.