Delete Analysis Resolver.
authorDevang Patel <dpatel@apple.com>
Thu, 26 Apr 2007 21:06:41 +0000 (21:06 +0000)
committerDevang Patel <dpatel@apple.com>
Thu, 26 Apr 2007 21:06:41 +0000 (21:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36493 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Pass.h

index 5dd3dba4c6e331d908d3adf283c1158691958a02..84ec8442fb8cb8dfd1a31edcfbe07f6ce5138d40 100644 (file)
@@ -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