Implement one operator== with another.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Jun 2014 15:06:22 +0000 (15:06 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Jun 2014 15:06:22 +0000 (15:06 +0000)
Thanks for David Blaikie for the suggestion.

llvm-svn: 210107

llvm/include/llvm/ADT/IntrusiveRefCntPtr.h

index 846ae39..128ada0 100644 (file)
@@ -248,7 +248,7 @@ public:
 
   template <class T>
   bool operator==(const IntrusiveRefCntPtr<T> &A, std::nullptr_t B) {
-    return !A;
+    return B == A;
   }
 
   template <class T>