[cfe-commits] r112786 - /cfe/trunk/include/clang/Sema/Sema.h

Zhanyong Wan wan at google.com
Wed Sep 1 17:43:20 PDT 2010


Author: wan
Date: Wed Sep  1 19:43:20 2010
New Revision: 112786

URL: http://llvm.org/viewvc/llvm-project?rev=112786&view=rev
Log:
Fixes a warning when compiling Clang (Sema has virtual methods but a non-virtual dtor).  Reviewed by chandlerc and nlewycky.

Modified:
    cfe/trunk/include/clang/Sema/Sema.h

Modified: cfe/trunk/include/clang/Sema/Sema.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Sema/Sema.h?rev=112786&r1=112785&r2=112786&view=diff
==============================================================================
--- cfe/trunk/include/clang/Sema/Sema.h (original)
+++ cfe/trunk/include/clang/Sema/Sema.h Wed Sep  1 19:43:20 2010
@@ -490,7 +490,7 @@
   Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
        bool CompleteTranslationUnit = true,
        CodeCompleteConsumer *CompletionConsumer = 0);
-  ~Sema();
+  virtual ~Sema();
   
   /// \brief Perform initialization that occurs after the parser has been
   /// initialized but before it parses anything.





More information about the cfe-commits mailing list