diff options
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Lex/PPLexerChange.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/lib/Lex/PPLexerChange.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gnu/llvm/tools/clang/lib/Lex/PPLexerChange.cpp b/gnu/llvm/tools/clang/lib/Lex/PPLexerChange.cpp index 36d7028da68..f21787338b3 100644 --- a/gnu/llvm/tools/clang/lib/Lex/PPLexerChange.cpp +++ b/gnu/llvm/tools/clang/lib/Lex/PPLexerChange.cpp @@ -40,10 +40,9 @@ bool Preprocessor::isInPrimaryFile() const { // If there are any stacked lexers, we're in a #include. assert(IsFileLexer(IncludeMacroStack[0]) && "Top level include stack isn't our primary lexer?"); - return std::none_of(IncludeMacroStack.begin() + 1, IncludeMacroStack.end(), - [this](const IncludeStackInfo &ISI) -> bool { - return IsFileLexer(ISI); - }); + return std::none_of( + IncludeMacroStack.begin() + 1, IncludeMacroStack.end(), + [&](const IncludeStackInfo &ISI) -> bool { return IsFileLexer(ISI); }); } /// getCurrentLexer - Return the current file lexer being lexed from. Note @@ -445,6 +444,7 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { } CurPPLexer = nullptr; + recomputeCurLexerKind(); return true; } |
