[cfe-commits] r105218 - /cfe/trunk/lib/CodeGen/Mangle.h

Chandler Carruth chandlerc at gmail.com
Mon May 31 01:27:42 PDT 2010


Author: chandlerc
Date: Mon May 31 03:27:42 2010
New Revision: 105218

URL: http://llvm.org/viewvc/llvm-project?rev=105218&view=rev
Log:
Silence GCC warning about an accessible non-virtual destructor in a class with
virtual methods.

Please review cdavis, should these methods even be virtual?

Modified:
    cfe/trunk/lib/CodeGen/Mangle.h

Modified: cfe/trunk/lib/CodeGen/Mangle.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/Mangle.h?rev=105218&r1=105217&r2=105218&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/Mangle.h (original)
+++ cfe/trunk/lib/CodeGen/Mangle.h Mon May 31 03:27:42 2010
@@ -84,6 +84,8 @@
                          Diagnostic &Diags)
     : Context(Context), Diags(Diags) { }
 
+  virtual ~MangleContext() { }
+
   ASTContext &getASTContext() const { return Context; }
 
   Diagnostic &getDiags() const { return Diags; }





More information about the cfe-commits mailing list