diff options
author | Chris Lattner <sabre@nondot.org> | 2003-07-01 17:15:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-07-01 17:15:11 +0000 |
commit | e2fe664e8fc1d9968df4b47396a0f4d19d53fd1e (patch) | |
tree | e301e0c66105d14e0eb29cac09131446c224a5ef /include | |
parent | 985d31215c2c3e5b2e8f7d9755158670f2c38cd4 (diff) | |
download | external_llvm-e2fe664e8fc1d9968df4b47396a0f4d19d53fd1e.zip external_llvm-e2fe664e8fc1d9968df4b47396a0f4d19d53fd1e.tar.gz external_llvm-e2fe664e8fc1d9968df4b47396a0f4d19d53fd1e.tar.bz2 |
Ok, I'm a moron. Fixed now
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7035 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/DSSupport.h | 2 | ||||
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSSupport.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Analysis/DSSupport.h b/include/llvm/Analysis/DSSupport.h index 910d1ce..3f680af 100644 --- a/include/llvm/Analysis/DSSupport.h +++ b/include/llvm/Analysis/DSSupport.h @@ -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; } diff --git a/include/llvm/Analysis/DataStructure/DSSupport.h b/include/llvm/Analysis/DataStructure/DSSupport.h index 910d1ce..3f680af 100644 --- a/include/llvm/Analysis/DataStructure/DSSupport.h +++ b/include/llvm/Analysis/DataStructure/DSSupport.h @@ -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; } |