Relax access control on 'Release' method of RefCountedBase.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128054 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2011-03-22 01:15:07 +00:00
parent f922910494
commit 116e2348ed

View File

@ -44,7 +44,7 @@ namespace llvm {
class RefCountedBase {
unsigned ref_cnt;
protected:
public:
RefCountedBase() : ref_cnt(0) {}
void Retain() { ++ref_cnt; }
@ -52,8 +52,6 @@ namespace llvm {
assert (ref_cnt > 0 && "Reference count is already zero.");
if (--ref_cnt == 0) delete static_cast<Derived*>(this);
}
friend class IntrusiveRefCntPtr<Derived>;
};
//===----------------------------------------------------------------------===//