[llvm] r186600 - Equal means ==, not !=. Thanks to Benjamin for catching.

Eric Christopher echristo at gmail.com
Thu Jul 18 12:11:41 PDT 2013


Author: echristo
Date: Thu Jul 18 14:11:41 2013
New Revision: 186600

URL: http://llvm.org/viewvc/llvm-project?rev=186600&view=rev
Log:
Equal means ==, not !=. Thanks to Benjamin for catching.

Modified:
    llvm/trunk/include/llvm/DebugInfo.h

Modified: llvm/trunk/include/llvm/DebugInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo.h?rev=186600&r1=186599&r2=186600&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo.h (original)
+++ llvm/trunk/include/llvm/DebugInfo.h Thu Jul 18 14:11:41 2013
@@ -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);





More information about the llvm-commits mailing list