aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 8a18f5896c..d211165394 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;