[llvm] r188583 - I'm told that != is not ==

Chris Lattner sabre at nondot.org
Fri Aug 16 15:29:44 PDT 2013


Author: lattner
Date: Fri Aug 16 17:29:44 2013
New Revision: 188583

URL: http://llvm.org/viewvc/llvm-project?rev=188583&view=rev
Log:
I'm told that != is not ==

Modified:
    llvm/trunk/include/llvm/ADT/PointerUnion.h

Modified: llvm/trunk/include/llvm/ADT/PointerUnion.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/PointerUnion.h?rev=188583&r1=188582&r2=188583&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/PointerUnion.h (original)
+++ llvm/trunk/include/llvm/ADT/PointerUnion.h Fri Aug 16 17:29:44 2013
@@ -185,7 +185,7 @@ namespace llvm {
   template<typename PT1, typename PT2>
   static bool operator!=(PointerUnion<PT1, PT2> lhs,
                          PointerUnion<PT1, PT2> rhs) {
-    return lhs.getOpaqueValue() == rhs.getOpaqueValue();
+    return lhs.getOpaqueValue() != rhs.getOpaqueValue();
   }
 
   // Teach SmallPtrSet that PointerUnion is "basically a pointer", that has





More information about the llvm-commits mailing list