From: Rafael Espindola Date: Tue, 3 Jun 2014 05:05:15 +0000 (+0000) Subject: Remove the last unspecified_bool_type from llvm. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c7dd10b2211fdba998d6ebd0a8a4c8abd9dd6040;p=platform%2Fupstream%2Fllvm.git Remove the last unspecified_bool_type from llvm. llvm-svn: 210076 --- diff --git a/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h b/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h index cd1946c..295c963 100644 --- a/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h +++ b/llvm/include/llvm/ADT/IntrusiveRefCntPtr.h @@ -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;