projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f922910
)
Relax access control on 'Release' method of RefCountedBase.
author
Ted Kremenek
<kremenek@apple.com>
Tue, 22 Mar 2011 01:15:07 +0000
(
01:15
+0000)
committer
Ted Kremenek
<kremenek@apple.com>
Tue, 22 Mar 2011 01:15:07 +0000
(
01:15
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128054
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/IntrusiveRefCntPtr.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/IntrusiveRefCntPtr.h
b/include/llvm/ADT/IntrusiveRefCntPtr.h
index f195fb1de8a3b8b382489af9d96d1c671def536b..592e42f7adc009a403c531cc8c88ed41a09239a5 100644
(file)
--- a/
include/llvm/ADT/IntrusiveRefCntPtr.h
+++ b/
include/llvm/ADT/IntrusiveRefCntPtr.h
@@
-44,7
+44,7
@@
namespace llvm {
class RefCountedBase {
unsigned ref_cnt;
- p
rotected
:
+ p
ublic
:
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>;
};
//===----------------------------------------------------------------------===//