diff --git a/llvm/include/llvm/AbstractTypeUser.h b/llvm/include/llvm/AbstractTypeUser.h index 8a18f5896c9c..d21116539419 100644 --- a/llvm/include/llvm/AbstractTypeUser.h +++ b/llvm/include/llvm/AbstractTypeUser.h @@ -143,6 +143,8 @@ public: addRef(); } + ~PATypeHolder() { dropRef(); } + operator const Type *() const { return get(); } const Type *get() const;