Changes in src/Concurrency/KeywordsNew.cpp [b2ecd48:d464b79]
- File:
-
- 1 edited
-
src/Concurrency/KeywordsNew.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Concurrency/KeywordsNew.cpp
rb2ecd48 rd464b79 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 539 536 // Say it is generated at the "same" places as the forward declaration. 540 const CodeLocation & location = decl->location;541 542 const ast::DeclWithType * param = decl->params.front();537 const CodeLocation & location = forward->location; 538 539 const ast::DeclWithType * param = forward->params.front(); 543 540 ast::Stmt * stmt = new ast::ReturnStmt( location, 544 541 new ast::AddressExpr( location, … … 554 551 ); 555 552 553 ast::FunctionDecl * decl = ast::deepCopy( forward ); 556 554 decl->stmts = new ast::CompoundStmt( location, { stmt } ); 557 555 declsToAddAfter.push_back( decl );
Note:
See TracChangeset
for help on using the changeset viewer.