Ok, I'm a moron. Fixed now
authorChris Lattner <sabre@nondot.org>
Tue, 1 Jul 2003 17:15:11 +0000 (17:15 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Jul 2003 17:15:11 +0000 (17:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7035 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSSupport.h
include/llvm/Analysis/DataStructure/DSSupport.h

index 910d1cec7bdb2c9d0d84760ff3f210bf00c3ef87..3f680af4b2ff276153e16351b4f883f7924a27a7 100644 (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;
   }
index 910d1cec7bdb2c9d0d84760ff3f210bf00c3ef87..3f680af4b2ff276153e16351b4f883f7924a27a7 100644 (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;
   }