Remove the last unspecified_bool_type from llvm.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Jun 2014 05:05:15 +0000 (05:05 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 3 Jun 2014 05:05:15 +0000 (05:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210076 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ADT/IntrusiveRefCntPtr.h

index cd1946c54d4f9d24c62c91113b556092273c5ebb..295c96315a5fbfb5141bf692982d2708a187799b 100644 (file)
@@ -177,10 +177,7 @@ public:
 
     T* getPtr() const { return Obj; }
 
-    typedef T* (IntrusiveRefCntPtr::*unspecified_bool_type) () const;
-    operator unspecified_bool_type() const {
-      return Obj ? &IntrusiveRefCntPtr::getPtr : nullptr;
-    }
+    LLVM_EXPLICIT operator bool() const { return Obj; }
 
     void swap(IntrusiveRefCntPtr& other) {
       T* tmp = other.Obj;