Fix a warning discovered by rL313487. [-Wunused-lambda-capture]

llvm-svn: 313511
This commit is contained in:
NAKAMURA Takumi 2017-09-18 04:55:33 +00:00
parent a5b348be9d
commit 0004057985
1 changed files with 1 additions and 1 deletions

View File

@ -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