diff options
author | Vitaly Buka <vitalybuka@google.com> | 2017-09-18 08:26:01 +0000 |
---|---|---|
committer | Vitaly Buka <vitalybuka@google.com> | 2017-09-18 08:26:01 +0000 |
commit | 2af104bd92de0d171ffdd8f997725da87efeaa2a (patch) | |
tree | 83a5435b6192d44da82f2e45fe54549811724b5a /lib/Lex/PPLexerChange.cpp | |
parent | 5a5f2707cbd5a5d3050e93aa2e54f0f60559edd2 (diff) |
Another attempt to fix warning discovered by r313487. [-Wunused-lambda-capture]
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r-- | lib/Lex/PPLexerChange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp index 5686871675..e484e9c4c3 100644 --- a/lib/Lex/PPLexerChange.cpp +++ b/lib/Lex/PPLexerChange.cpp @@ -42,7 +42,7 @@ bool Preprocessor::isInPrimaryFile() const { "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); }); + [&](const IncludeStackInfo &ISI) -> bool { return IsFileLexer(ISI); }); } /// getCurrentLexer - Return the current file lexer being lexed from. Note |