Hrm is a really nasty ommission. The lack of this destructor was causing abstract
authorChris Lattner <sabre@nondot.org>
Tue, 23 Dec 2003 23:25:21 +0000 (23:25 +0000)
committerChris 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

index 8a18f5896c9cc786581b9441df7611567bbe023a..d21116539419235e99acfec25e859edb79116526 100644 (file)
@@ -143,6 +143,8 @@ public:
     addRef();
   }
 
+  ~PATypeHolder() { dropRef(); }
+
   operator const Type *() const { return get(); }
   const Type *get() const;