Changeset 61e362f for src/ResolvExpr
- Timestamp:
- Jan 23, 2024, 2:16:13 PM (11 months ago)
- Branches:
- master
- Children:
- 71b5aad5
- Parents:
- a4ed165
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ResolvExpr/CandidateFinder.cpp
ra4ed165 r61e362f 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.