Changeset 221c542e for src/ResolvExpr/CandidateFinder.cpp
- Timestamp:
- Jan 24, 2024, 8:19:18 AM (20 months ago)
- Branches:
- master
- Children:
- 64c4b4d
- Parents:
- bad9c8f (diff), 71b5aad5 (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/CandidateFinder.cpp
rbad9c8f r221c542e 46 46 #include "AST/Type.hpp" 47 47 #include "Common/utility.h" // for move, copy 48 #include "Parser/parserutility.h" // for notZeroExpr 48 49 #include "SymTab/Mangler.h" 49 50 #include "Tuples/Tuples.h" // for handleTupleAssignment … … 1502 1503 void Finder::postvisit( const ast::LogicalExpr * logicalExpr ) { 1503 1504 CandidateFinder finder1( context, tenv ); 1504 finder1.find( logicalExpr->arg1, ResolveMode::withAdjustment() ); 1505 ast::ptr<ast::Expr> arg1 = notZeroExpr( logicalExpr->arg1 ); 1506 finder1.find( arg1, ResolveMode::withAdjustment() ); 1505 1507 if ( finder1.candidates.empty() ) return; 1506 1508 1507 1509 CandidateFinder finder2( context, tenv ); 1508 finder2.find( logicalExpr->arg2, ResolveMode::withAdjustment() ); 1510 ast::ptr<ast::Expr> arg2 = notZeroExpr( logicalExpr->arg2 ); 1511 finder2.find( arg2, ResolveMode::withAdjustment() ); 1509 1512 if ( finder2.candidates.empty() ) return; 1510 1513 … … 1532 1535 // candidates for condition 1533 1536 CandidateFinder finder1( context, tenv ); 1534 finder1.find( conditionalExpr->arg1, ResolveMode::withAdjustment() ); 1537 ast::ptr<ast::Expr> arg1 = notZeroExpr( conditionalExpr->arg1 ); 1538 finder1.find( arg1, ResolveMode::withAdjustment() ); 1535 1539 if ( finder1.candidates.empty() ) return; 1536 1540
Note:
See TracChangeset
for help on using the changeset viewer.