Changeset 400b8be for src/Concurrency


Ignore:
Timestamp:
Mar 28, 2022, 10:41:45 AM (4 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
Children:
8e819a9
Parents:
f5bace8
Message:

Added StmtClause and converted the existing nodes that should be clauses.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Concurrency/KeywordsNew.cpp

    rf5bace8 r400b8be  
    13331333
    13341334                // construct the current try
    1335                 currentTry = new ast::TryStmt( 
    1336                         location, 
    1337                         currTryBody, 
    1338                         {}, 
    1339                         new ast::FinallyStmt( location, currFinallyBody )
     1335                currentTry = new ast::TryStmt(
     1336                        location,
     1337                        currTryBody,
     1338                        {},
     1339                        new ast::FinallyClause( location, currFinallyBody )
    13401340                );
    13411341                if ( i == 0 ) outerTry = currentTry;
     
    13511351                lastBody->push_back( body );
    13521352                newBody->push_front( outerTry );
    1353         }       
     1353        }
    13541354
    13551355        // monitor_guard_t __guard = { __monitors, # };
Note: See TracChangeset for help on using the changeset viewer.