aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZhanyong Wan <wan@google.com>2010-09-02 00:43:20 +0000
committerZhanyong Wan <wan@google.com>2010-09-02 00:43:20 +0000
commit85dd015707143f763617098ec9458bf61db420f1 (patch)
treeefa678cf053df430bb566070099e39c6a51b8b1d
parent08140f99e507cfd593146bdf2efb01b24da822fa (diff)
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
-rw-r--r--include/clang/Sema/Sema.h2
1 files changed, 1 insertions, 1 deletions
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.