I'm told that != is not ==
[oota-llvm.git] / include / llvm / ADT / PointerUnion.h
index 045cf2bd2ed577e60a80bc5e28a8f6ce71daa9fd..4eed121ed39fc16683d2732da8a73ced49d6bf85 100644 (file)
@@ -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