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
This commit is contained in:
Chris Lattner
2003-12-23 23:25:21 +00:00
parent 02f61c1f24
commit dbd9b3f75c

View File

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