forked from OSchip/llvm-project
Remove the last unspecified_bool_type from llvm.
llvm-svn: 210076
This commit is contained in:
parent
507f1bc37e
commit
c7dd10b221
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue