Changeset 4c2e561 for src/Concurrency
- Timestamp:
- Jul 4, 2023, 4:29:10 PM (3 years ago)
- Branches:
- master
- Children:
- 3430ce8
- Parents:
- 3397eed (diff), 7f1be01 (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
-
src/Concurrency/KeywordsNew.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/KeywordsNew.cpp
r3397eed r4c2e561 534 534 void ConcurrentSueKeyword::addGetRoutines( 535 535 const ast::ObjectDecl * field, const ast::FunctionDecl * forward ) { 536 // Clone the signature and then build the body. 537 ast::FunctionDecl * decl = ast::deepCopy( forward ); 538 536 539 // Say it is generated at the "same" places as the forward declaration. 537 const CodeLocation & location = forward->location;538 539 const ast::DeclWithType * param = forward->params.front();540 const CodeLocation & location = decl->location; 541 542 const ast::DeclWithType * param = decl->params.front(); 540 543 ast::Stmt * stmt = new ast::ReturnStmt( location, 541 544 new ast::AddressExpr( location, … … 551 554 ); 552 555 553 ast::FunctionDecl * decl = ast::deepCopy( forward );554 556 decl->stmts = new ast::CompoundStmt( location, { stmt } ); 555 557 declsToAddAfter.push_back( decl );
Note:
See TracChangeset
for help on using the changeset viewer.