From: Zhanyong Wan Date: Thu, 2 Sep 2010 00:43:20 +0000 (+0000) Subject: Fixes a warning when compiling Clang (Sema has virtual methods but a non-virtual... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=85dd015707143f763617098ec9458bf61db420f1;p=clang Fixes a warning when compiling Clang (Sema has virtual methods but a non-virtual dtor). Reviewed by chandlerc and nlewycky. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112786 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Sema/Sema.h b/include/clang/Sema/Sema.h index 5558eae4da..90f7f98348 100644 --- a/include/clang/Sema/Sema.h +++ b/include/clang/Sema/Sema.h @@ -490,7 +490,7 @@ public: 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.