summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-09-18 04:55:33 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-09-18 04:55:33 +0000
commit0004057985a30c879f0f36ab805ef1ff059247f8 (patch)
tree6f00c3354f377636b6483c315797ee2cef4a7a63 /clang/lib
parenta5b348be9d4e68bab02055fc4fbc33579628e285 (diff)
downloadbcm5719-llvm-0004057985a30c879f0f36ab805ef1ff059247f8.tar.gz
bcm5719-llvm-0004057985a30c879f0f36ab805ef1ff059247f8.zip
Fix a warning discovered by rL313487. [-Wunused-lambda-capture]
llvm-svn: 313511
Diffstat (limited to 'clang/lib')
-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..aa7cf17f080 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