diff options
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 59df8255e32..a5684cc36a4 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -339,6 +339,13 @@ void Preprocessor::PTHSkipExcludedConditionalBlock() { // If the #if block wasn't entered then enter the #else block now. if (!CondInfo.FoundNonSkip) { CondInfo.FoundNonSkip = true; + + // Consume the eom token. + CurPTHLexer->ParsingPreprocessorDirective = true; + LexUnexpandedToken(Tok); + assert(Tok.is(tok::eom)); + CurPTHLexer->ParsingPreprocessorDirective = false; + break; } |