]> granicus.if.org Git - clang/commitdiff
Mark destructor of Checker virtual.
authorTed Kremenek <kremenek@apple.com>
Fri, 24 Jul 2009 00:40:31 +0000 (00:40 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 24 Jul 2009 00:40:31 +0000 (00:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76924 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Analysis/PathSensitive/Checker.h
lib/Analysis/GRExprEngineInternalChecks.cpp

index 9c32d164587522140ab88a22daeb87d7b999a60f..d432086e6e2352c19ce73367ead3671193f8b1b4 100644 (file)
@@ -92,6 +92,7 @@ private:
   }
   
 public:
+  virtual ~Checker() {}
   virtual void _PreVisit(CheckerContext &C, const Stmt *stmt) = 0;
   virtual const void *getTag() = 0;
 };
index 91fb6a8c03033824bb08e07ac7166f192b54dd5f..06fe5b8267ebcf0cec67ef87ee6142b3039bff01 100644 (file)
@@ -544,6 +544,7 @@ class VISIBILITY_HIDDEN CheckAttrNonNull :
   
 public:
   CheckAttrNonNull() : BT(0) {}
+  ~CheckAttrNonNull() {}
 
   const void *getTag() {
     static int x = 0;