Changes in src/Concurrency/WaitforNew.cpp [45a091b:c86b08d]
- File:
-
- 1 edited
-
src/Concurrency/WaitforNew.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/WaitforNew.cpp
r45a091b rc86b08d 450 450 ); 451 451 452 for ( const auto & [i, clause] : enumerate( waitfor->clauses ) ) { 452 // For some reason, enumerate doesn't work here because of references. 453 for ( size_t i = 0 ; i < waitfor->clauses.size() ; ++i ) { 453 454 theSwitch->cases.push_back( 454 455 new ast::CaseClause( location, … … 456 457 { 457 458 new ast::CompoundStmt( location, { 458 clause->stmt,459 waitfor->clauses[i]->stmt, 459 460 new ast::BranchStmt( location, 460 461 ast::BranchStmt::Break, … … 537 538 ast::Stmt * setter = makeSetter( location, flag ); 538 539 539 for ( const auto & [i, clause] : enumerate( stmt->clauses ) ) { 540 init_clause( comp, acceptables, i, clause, setter ); 540 // For some reason, enumerate doesn't work here because of references. 541 for ( size_t i = 0 ; i < stmt->clauses.size() ; ++i ) { 542 init_clause( comp, acceptables, i, stmt->clauses[i], setter ); 541 543 } 542 544
Note:
See TracChangeset
for help on using the changeset viewer.