Changeset a935892 for src/AST/Node.hpp
- Timestamp:
- Jun 3, 2019, 10:54:01 AM (5 years ago)
- 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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Node.hpp
r043a5b6 ra935892 113 113 } 114 114 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; } 118 116 119 117 template< enum Node::ref_type o_ref_t > … … 139 137 140 138 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; 142 143 return *this; 143 144 }
Note: See TracChangeset
for help on using the changeset viewer.