summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
Diffstat (limited to 'clang')
-rw-r--r--clang/include/clang/Lex/PreprocessorLexer.h1
-rw-r--r--clang/lib/Lex/PreprocessorLexer.cpp2
2 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/Lex/PreprocessorLexer.h b/clang/include/clang/Lex/PreprocessorLexer.h
index 12a0cef992e..bbe6dbeeac5 100644
--- a/clang/include/clang/Lex/PreprocessorLexer.h
+++ b/clang/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/clang/lib/Lex/PreprocessorLexer.cpp b/clang/lib/Lex/PreprocessorLexer.cpp
index cbda79fd8bc..f3d91af4ed1 100644
--- a/clang/lib/Lex/PreprocessorLexer.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud