Changeset 8d66610 for src/GenPoly
- Timestamp:
- May 21, 2021, 4:48:10 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- f1bce515
- Parents:
- 5407cdc (diff), 7404cdc (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/GenPoly/Box.cc (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/Box.cc
r5407cdc r8d66610 1525 1525 stmtsToAddBefore.push_back( new DeclStmt( newBuf ) ); 1526 1526 1527 // if the object has a cleanup attribute, the cleanup should be on the buffer, not the pointer 1528 auto matchAndMove = [newBuf](Attribute * attr){ 1529 if(attr->name == "cleanup") { 1530 newBuf->attributes.push_back(attr); 1531 return true; 1532 } 1533 return false; 1534 }; 1535 1536 objectDecl->attributes.remove_if(matchAndMove); 1537 1527 1538 delete objectDecl->get_init(); 1528 1539 objectDecl->set_init( new SingleInit( new VariableExpr( newBuf ) ) );
Note:
See TracChangeset
for help on using the changeset viewer.