Changeset 7d0881c for src/AST/Node.cpp


Ignore:
Timestamp:
Jun 28, 2019, 11:59:00 AM (5 years ago)
Author:
Michael Brooks <mlbrooks@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
55b6476
Parents:
e0e9a0b
Message:

Aaron added decrement-without delete option to Node infrastructure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Node.cpp

    re0e9a0b r7d0881c  
    5050
    5151template< typename node_t, enum ast::Node::ref_type ref_t >
    52 void ast::ptr_base<node_t, ref_t>::_dec( const node_t * node ) {
     52void ast::ptr_base<node_t, ref_t>::_dec( const node_t * node, bool do_delete ) {
    5353        _trap( node );
    54         node->decrement(ref_t);
     54        node->decrement(ref_t, do_delete );
    5555}
    5656
Note: See TracChangeset for help on using the changeset viewer.