Changeset d76c588 for src/AST/Node.hpp


Ignore:
Timestamp:
May 30, 2019, 4:10:24 PM (5 years ago)
Author:
Aaron Moss <a3moss@…>
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:
8d70648
Parents:
eba615c
Message:

Stubs for new resolver, implementation of new indexer, type environment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Node.hpp

    reba615c rd76c588  
    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.