summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2017-09-18 08:26:01 +0000
committerVitaly Buka <vitalybuka@google.com>2017-09-18 08:26:01 +0000
commit55a27d3c146e9c34014f7ec65008f41fa3489d69 (patch)
tree8eb5f070b933cbf9581b80d3b1f8eb59f6d1d3df /clang/lib/Lex/PPLexerChange.cpp
parente66dc01bbf4e3b7eb0e46e94c339e4487834f6b4 (diff)
downloadbcm5719-llvm-55a27d3c146e9c34014f7ec65008f41fa3489d69.tar.gz
bcm5719-llvm-55a27d3c146e9c34014f7ec65008f41fa3489d69.zip
Another attempt to fix warning discovered by r313487. [-Wunused-lambda-capture]
llvm-svn: 313521
Diffstat (limited to 'clang/lib/Lex/PPLexerChange.cpp')
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index 5686871675d..e484e9c4c3a 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/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
OpenPOWER on IntegriCloud