From aa31609fb8a9618759921132c071dfbb2c851375 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 3 Jun 2014 15:06:22 +0000 Subject: [PATCH] Implement one operator== with another. Thanks for David Blaikie for the suggestion. llvm-svn: 210107 --- llvm/include/llvm/ADT/IntrusiveRefCntPtr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h b/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h index 846ae39..128ada0 100644 --- a/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h +++ b/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h @@ -248,7 +248,7 @@ public: template bool operator==(const IntrusiveRefCntPtr &A, std::nullptr_t B) { - return !A; + return B == A; } template -- 2.7.4