Revision of Brian's threading support library to be a bit more generic and
[oota-llvm.git] / 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;