Ok, I'm a moron. Fixed now

llvm-svn: 7035
This commit is contained in:
Chris Lattner 2003-07-01 17:15:11 +00:00
parent 31f1db746b
commit 972e76f00d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}