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:
0891d99
)
Allow a client to clear an IntrustiveRefCntPtr (deliberately leaking the referenced...
author
Ted Kremenek
<kremenek@apple.com>
Mon, 21 Mar 2011 18:37:59 +0000
(18:37 +0000)
committer
Ted Kremenek
<kremenek@apple.com>
Mon, 21 Mar 2011 18:37:59 +0000
(18:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128007
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 e6926de413a1b10bd7ff4d4b2decbce71610f748..f195fb1de8a3b8b382489af9d96d1c671def536b 100644
(file)
--- a/
include/llvm/ADT/IntrusiveRefCntPtr.h
+++ b/
include/llvm/ADT/IntrusiveRefCntPtr.h
@@
-155,6
+155,10
@@
namespace llvm {
other.Obj = Obj;
Obj = tmp;
}
+
+ void resetWithoutRelease() {
+ Obj = 0;
+ }
private:
void retain() { if (Obj) Obj->Retain(); }