Changeset a935892 for src/AST/Node.hpp


Ignore:
Timestamp:
Jun 3, 2019, 10:54:01 AM (5 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
0e315a5, dafe9e1
Parents:
043a5b6 (diff), 8d70648 (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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Node.hpp

    r043a5b6 ra935892  
    113113        }
    114114
    115         ptr_base( ptr_base && o ) : node(o.node) {
    116                 if( node ) _inc(node);
    117         }
     115        ptr_base( ptr_base && o ) : node(o.node) { o.node = nullptr; }
    118116
    119117        template< enum Node::ref_type o_ref_t >
     
    139137
    140138        ptr_base & operator=( ptr_base && o ) {
    141                 assign(o.node);
     139                if ( node == o.node ) return *this;
     140                if ( node ) _dec(node);
     141                node = o.node;
     142                o.node = nullptr;
    142143                return *this;
    143144        }
Note: See TracChangeset for help on using the changeset viewer.