Changeset 4e2f1b2 for src/Validate/Autogen.cpp
- Timestamp:
- Feb 23, 2024, 3:59:35 PM (5 months ago)
- Branches:
- master
- Children:
- 1761046
- Parents:
- d06273c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Validate/Autogen.cpp
rd06273c r4e2f1b2 134 134 /// (constructor call, destructor call, assignment call) 135 135 // This is managed because it uses another helper that returns a ast::ptr. 136 ast::ptr<ast::Stmt>makeMemberOp(136 const ast::Stmt * makeMemberOp( 137 137 const CodeLocation& location, 138 138 const ast::ObjectDecl * dstParam, const ast::Expr * src, … … 524 524 } 525 525 526 ast::ptr<ast::Stmt>StructFuncGenerator::makeMemberOp(526 const ast::Stmt * StructFuncGenerator::makeMemberOp( 527 527 const CodeLocation& location, const ast::ObjectDecl * dstParam, 528 528 const ast::Expr * src, const ast::ObjectDecl * field, … … 539 539 ) 540 540 ); 541 autostmt = genImplicitCall(541 const ast::Stmt * stmt = genImplicitCall( 542 542 srcParam, dstSelect, location, func->name, 543 543 field, direction … … 597 597 location, field, new ast::VariableExpr( location, srcParam ) 598 598 ) : nullptr; 599 ast::ptr<ast::Stmt>stmt =599 const ast::Stmt * stmt = 600 600 makeMemberOp( location, dstParam, srcSelect, field, func, direction ); 601 601 602 602 if ( nullptr != stmt ) { 603 stmts->kids. push_back( stmt );603 stmts->kids.emplace_back( stmt ); 604 604 } 605 605 } … … 622 622 for ( auto param = params.begin() + 1 ; current != end ; ++current ) { 623 623 const ast::ptr<ast::Decl> & member = *current; 624 ast::ptr<ast::Stmt>stmt = nullptr;624 const ast::Stmt * stmt = nullptr; 625 625 auto field = member.as<ast::ObjectDecl>(); 626 626 // Not sure why it could be null. … … 640 640 641 641 if ( nullptr != stmt ) { 642 stmts->kids. push_back( stmt );642 stmts->kids.emplace_back( stmt ); 643 643 } 644 644 }
Note: See TracChangeset
for help on using the changeset viewer.