diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2010-05-31 08:27:42 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2010-05-31 08:27:42 +0000 |
commit | 5b013df7d194ddaf030177387789c3c8248852b2 (patch) | |
tree | 98362eef8dc3875da6eea0a1ee1249df09c8ed70 | |
parent | a709b87de4644c05d7787f9fb246d2b4dc38bf51 (diff) |
Silence GCC warning about an accessible non-virtual destructor in a class with
virtual methods.
Please review cdavis, should these methods even be virtual?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105218 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/CodeGen/Mangle.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/Mangle.h b/lib/CodeGen/Mangle.h index f1c5358bdd..a12a140f72 100644 --- a/lib/CodeGen/Mangle.h +++ b/lib/CodeGen/Mangle.h @@ -84,6 +84,8 @@ public: Diagnostic &Diags) : Context(Context), Diags(Diags) { } + virtual ~MangleContext() { } + ASTContext &getASTContext() const { return Context; } Diagnostic &getDiags() const { return Diags; } |