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/llvm/Analysis/DataStructure/DSSupport.h | |
parent | 985d31215c2c3e5b2e8f7d9755158670f2c38cd4 (diff) |
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/llvm/Analysis/DataStructure/DSSupport.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSSupport.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSSupport.h b/include/llvm/Analysis/DataStructure/DSSupport.h index 910d1cec7b..3f680af4b2 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; } |