mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 18:31:04 +00:00
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:
parent
f922910494
commit
116e2348ed
@ -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>;
|
||||
};
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user