aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-12-23 23:25:21 +0000
committerChris Lattner <sabre@nondot.org>2003-12-23 23:25:21 +0000
commitdbd9b3f75c5b52b2310513ff5e781fd83a49db08 (patch)
treeec978a0e5cb0f141ce18b0e1c5be4ca1bdf0be98 /include
parent02f61c1f24c4cfb64af89a4bb8c1553b59e75fb8 (diff)
downloadexternal_llvm-dbd9b3f75c5b52b2310513ff5e781fd83a49db08.zip
external_llvm-dbd9b3f75c5b52b2310513ff5e781fd83a49db08.tar.gz
external_llvm-dbd9b3f75c5b52b2310513ff5e781fd83a49db08.tar.bz2
Hrm is a really nasty ommission. The lack of this destructor was causing abstract
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/AbstractTypeUser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h
index 8a18f58..d211165 100644
--- 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;