llvm.org GIT mirror llvm / dacea25
Remove the last unspecified_bool_type from llvm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210076 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
1 changed file(s) with 1 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
176176
177177 T* getPtr() const { return Obj; }
178178
179 typedef T* (IntrusiveRefCntPtr::*unspecified_bool_type) () const;
180 operator unspecified_bool_type() const {
181 return Obj ? &IntrusiveRefCntPtr::getPtr : nullptr;
182 }
179 LLVM_EXPLICIT operator bool() const { return Obj; }
183180
184181 void swap(IntrusiveRefCntPtr& other) {
185182 T* tmp = other.Obj;