From: Chris Lattner Date: Tue, 23 Dec 2003 23:25:21 +0000 (+0000) Subject: Hrm is a really nasty ommission. The lack of this destructor was causing abstract X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=dbd9b3f75c5b52b2310513ff5e781fd83a49db08;p=oota-llvm.git 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 --- diff --git a/include/llvm/AbstractTypeUser.h b/include/llvm/AbstractTypeUser.h index 8a18f5896c9..d2111653941 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;