forked from OSchip/llvm-project
parent
31f1db746b
commit
972e76f00d
|
@ -60,7 +60,7 @@ public:
|
|||
}
|
||||
~DSNodeHandle() { setNode((DSNode*)0); }
|
||||
DSNodeHandle &operator=(const DSNodeHandle &H) {
|
||||
if (&H != this) return *this; // Don't set offset to 0 if self assigning.
|
||||
if (&H == this) return *this; // Don't set offset to 0 if self assigning.
|
||||
Offset = 0; setNode(H.getNode()); Offset = H.Offset;
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue