[StaticAnalyzer] Fix non-virtual destructor warning
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 26 May 2020 18:32:02 +0000 (11:32 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 26 May 2020 18:32:02 +0000 (11:32 -0700)
Ficed warning: 'clang::ento::ExprEngine' has virtual functions but non-virtual destructor [-
Wnon-virtual-dtor]
  ~ExprEngine() = default;

clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h

index a94c847..b32302c 100644 (file)
@@ -177,7 +177,7 @@ public:
              SetOfConstDecls *VisitedCalleesIn,
              FunctionSummariesTy *FS, InliningModes HowToInlineIn);
 
-  ~ExprEngine() = default;
+  virtual ~ExprEngine() = default;
 
   /// Returns true if there is still simulation state on the worklist.
   bool ExecuteWorkList(const LocationContext *L, unsigned Steps = 150000) {