[llvm] r210076 - Remove the last unspecified_bool_type from llvm.

Rafael Espindola rafael.espindola at gmail.com
Mon Jun 2 22:05:16 PDT 2014


Author: rafael
Date: Tue Jun  3 00:05:15 2014
New Revision: 210076

URL: http://llvm.org/viewvc/llvm-project?rev=210076&view=rev
Log:
Remove the last unspecified_bool_type from llvm.

Modified:
    llvm/trunk/include/llvm/ADT/IntrusiveRefCntPtr.h

Modified: llvm/trunk/include/llvm/ADT/IntrusiveRefCntPtr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/IntrusiveRefCntPtr.h?rev=210076&r1=210075&r2=210076&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/IntrusiveRefCntPtr.h (original)
+++ llvm/trunk/include/llvm/ADT/IntrusiveRefCntPtr.h Tue Jun  3 00:05:15 2014
@@ -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;





More information about the llvm-commits mailing list