EHScopeStack::Cleanup has virtual functions so the destructor should be too.
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 2 Mar 2020 13:26:39 +0000 (13:26 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Mon, 2 Mar 2020 15:06:34 +0000 (15:06 +0000)
Fixes cppcheck warning.

clang/lib/CodeGen/EHScopeStack.h

index 0ed67aa..4dd3da3 100644 (file)
@@ -148,7 +148,7 @@ public:
     virtual void anchor();
 
   protected:
-    ~Cleanup() = default;
+    virtual ~Cleanup() = default;
 
   public:
     Cleanup(const Cleanup &) = default;