forked from OSchip/llvm-project
Fix major problem that was causing all kinds of nasty foldings
llvm-svn: 7034
This commit is contained in:
parent
09711cc547
commit
31f1db746b
|
@ -60,6 +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.
|
||||
Offset = 0; setNode(H.getNode()); Offset = H.Offset;
|
||||
return *this;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue