diff options
-rw-r--r-- | include/llvm/Pass.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 5dd3dba4c6..84ec8442fb 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -88,7 +88,7 @@ class Pass { Pass(const Pass &); // DO NOT IMPLEMENT public: Pass() : Resolver(0), PassInfoCache(0) {} - virtual ~Pass() {} // Destructor is virtual so we can be subclassed + virtual ~Pass() { delete Resolver; } // Destructor is virtual so we can be subclassed /// getPassName - Return a nice clean name for a pass. This usually /// implemented in terms of the name that is registered by one of the |