Another attempt to fix warning discovered by r313487. [-Wunused-lambda-capture]

llvm-svn: 313521
This commit is contained in:
Vitaly Buka 2017-09-18 08:26:01 +00:00
parent e66dc01bbf
commit 55a27d3c14
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