Implement one operator== with another.

Thanks for David Blaikie for the suggestion.

llvm-svn: 210107
This commit is contained in:
Rafael Espindola 2014-06-03 15:06:22 +00:00
parent 7d4fc2c6a7
commit aa31609fb8
1 changed files with 1 additions and 1 deletions

View 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>