aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-11-12 22:48:57 +0000
committerTed Kremenek <kremenek@apple.com>2008-11-12 22:48:57 +0000
commit2c71d0f00e40b7b0a85561d430f52247b9c6e7f2 (patch)
tree2bd4518f12adaf1b7a50c0fe35528fa137032f97
parenteb41c28b78634ba2165b4aa04e33f3a12e590b0e (diff)
Add virtual dtor to PreprocessorLexer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@59188 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/clang/Lex/PreprocessorLexer.h1
-rw-r--r--lib/Lex/PreprocessorLexer.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Lex/PreprocessorLexer.h b/include/clang/Lex/PreprocessorLexer.h
index 12a0cef992..bbe6dbeeac 100644
--- a/include/clang/Lex/PreprocessorLexer.h
+++ b/include/clang/Lex/PreprocessorLexer.h
@@ -60,6 +60,7 @@ protected:
friend class Preprocessor;
PreprocessorLexer() {}
+ virtual ~PreprocessorLexer();
virtual void IndirectLex(Token& Result) = 0;
diff --git a/lib/Lex/PreprocessorLexer.cpp b/lib/Lex/PreprocessorLexer.cpp
index cbda79fd8b..f3d91af4ed 100644
--- a/lib/Lex/PreprocessorLexer.cpp
+++ b/lib/Lex/PreprocessorLexer.cpp
@@ -18,6 +18,8 @@
using namespace clang;
+PreprocessorLexer::~PreprocessorLexer() {}
+
/// LexIncludeFilename - After the preprocessor has parsed a #include, lex and
/// (potentially) macro expand the filename.
void PreprocessorLexer::LexIncludeFilename(Token &FilenameTok) {