From e2fe664e8fc1d9968df4b47396a0f4d19d53fd1e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 1 Jul 2003 17:15:11 +0000 Subject: [PATCH] Ok, I'm a moron. Fixed now git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7035 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Analysis/DSSupport.h | 2 +- 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 910d1cec7bd..3f680af4b2f 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 910d1cec7bd..3f680af4b2f 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; }