Skip to content

Commit

Permalink
EHScopeStack::Cleanup has virtual functions so the destructor should …
Browse files Browse the repository at this point in the history
…be too.

Fixes cppcheck warning.
  • Loading branch information
RKSimon committed Mar 2, 2020
1 parent d0d38df commit 736385c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/CodeGen/EHScopeStack.h
Expand Up @@ -148,7 +148,7 @@ class EHScopeStack {
virtual void anchor();

protected:
~Cleanup() = default;
virtual ~Cleanup() = default;

public:
Cleanup(const Cleanup &) = default;
Expand Down

0 comments on commit 736385c

Please sign in to comment.