projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow a client to clear an IntrustiveRefCntPtr (deliberately leaking the referenced...
[oota-llvm.git]
/
include
/
llvm
/
ADT
/
IntrusiveRefCntPtr.h
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(); }