Changeset 9cb2742
- Timestamp:
- Jul 17, 2023, 1:47:25 PM (16 months ago)
- Branches:
- master
- Children:
- f3c02ea
- Parents:
- c2c1717
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/Waituntil.cpp
rc2c1717 r9cb2742 625 625 CompoundStmt * GenerateWaitUntilCore::genStmtBlock( const WhenClause * clause, const ClauseData * data ) { 626 626 const CodeLocation & cLoc = clause->location; 627 // return new CompoundStmt( cLoc, // OLD 628 // { 629 // new ExprStmt( cLoc, 630 // genSelectTraitCall( clause, data, "on_selected" ) 631 // ), 632 // ast::deepCopy( clause->stmt ) 633 // } 634 // ); 627 635 return new CompoundStmt( cLoc, 628 636 { 629 new ExprStmt( cLoc,630 genSelectTraitCall( clause, data, "on_selected" ) 631 ),632 ast::deepCopy( clause->stmt)637 new IfStmt( cLoc, 638 genSelectTraitCall( clause, data, "on_selected" ), 639 ast::deepCopy( clause->stmt ) 640 ) 633 641 } 634 642 ); … … 819 827 ); 820 828 } 821 829 // C_TODO remove unused param if change kept 822 830 Stmt * GenerateWaitUntilCore::genNoElseClauseBranch( const WaitUntilStmt * stmt, string & satName, string & runName, string & arrName, string & pCountName, vector<ClauseData *> & clauseData ) { 823 831 CompoundStmt * whileBody = new CompoundStmt( stmt->location ); … … 834 842 ); 835 843 836 whileBody->push_back( genStatusCheckFor( stmt, clauseData, satName ) ); 844 whileBody->push_back( genStatusCheckFor( stmt, clauseData, runName ) ); 845 // whileBody->push_back( genStatusCheckFor( stmt, clauseData, satName ) ); // OLD 837 846 838 847 return new CompoundStmt( loc, 839 848 { 840 849 new WhileDoStmt( loc, 841 genNotSatExpr( stmt, satName, arrName ), 850 genNotSatExpr( stmt, runName, arrName ), 851 // genNotSatExpr( stmt, satName, arrName ), // OLD 842 852 whileBody, // body 843 853 {} // no inits 844 ), 845 genStatusCheckFor( stmt, clauseData, runName ) 854 ) 855 // , // OLD 856 // genStatusCheckFor( stmt, clauseData, runName ) // OLD 846 857 } 847 858 );
Note: See TracChangeset
for help on using the changeset viewer.