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:
02f61c1
)
Hrm is a really nasty ommission. The lack of this destructor was causing abstract
author
Chris Lattner
<sabre@nondot.org>
Tue, 23 Dec 2003 23:25:21 +0000
(23:25 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 23 Dec 2003 23:25:21 +0000
(23:25 +0000)
types to never be deleted, manifesting itself as many OpaqueType objects being
leaked. Whoops.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10601
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/AbstractTypeUser.h
patch
|
blob
|
history
diff --git
a/include/llvm/AbstractTypeUser.h
b/include/llvm/AbstractTypeUser.h
index 8a18f5896c9cc786581b9441df7611567bbe023a..d21116539419235e99acfec25e859edb79116526 100644
(file)
--- a/
include/llvm/AbstractTypeUser.h
+++ b/
include/llvm/AbstractTypeUser.h
@@
-143,6
+143,8
@@
public:
addRef();
}
+ ~PATypeHolder() { dropRef(); }
+
operator const Type *() const { return get(); }
const Type *get() const;