aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2010-05-31 08:27:42 +0000
committerChandler Carruth <chandlerc@gmail.com>2010-05-31 08:27:42 +0000
commit5b013df7d194ddaf030177387789c3c8248852b2 (patch)
tree98362eef8dc3875da6eea0a1ee1249df09c8ed70
parenta709b87de4644c05d7787f9fb246d2b4dc38bf51 (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.h2
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; }