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)
llvm-svn: 186600

llvm/include/llvm/DebugInfo.h

index 81c36ae..2a00ab0 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);