From: Rafael Espindola Date: Tue, 3 Jun 2014 15:06:22 +0000 (+0000) Subject: Implement one operator== with another. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aa31609fb8a9618759921132c071dfbb2c851375;p=platform%2Fupstream%2Fllvm.git Implement one operator== with another. Thanks for David Blaikie for the suggestion. llvm-svn: 210107 --- 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