Equal means ==, not !=. Thanks to Benjamin for catching.
authorEric Christopher <echristo@gmail.com>
Thu, 18 Jul 2013 19:11:41 +0000 (19:11 +0000)
committerEric Christopher <echristo@gmail.com>
Thu, 18 Jul 2013 19:11:41 +0000 (19:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186600 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo.h

index 81c36ae0eeeebff7bb62adefec2a332b8257ebdd..2a00ab02ec8de09a55545c89d8c6259f912f88e8 100644 (file)
@@ -110,7 +110,7 @@ namespace llvm {
     LLVM_EXPLICIT operator bool() const { return DbgNode != 0; }
 
     bool operator==(DIDescriptor Other) const {
-      return DbgNode != Other.DbgNode;
+      return DbgNode == Other.DbgNode;
     }
     bool operator!=(DIDescriptor Other) const {
       return !operator==(Other);