Fix MSVC warning about missing 'this' from lambda default capture mode

llvm-svn: 285281
This commit is contained in:
Simon Pilgrim 2016-10-27 10:51:29 +00:00
parent 09947a3155
commit d2611d50aa
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ bool Preprocessor::isInPrimaryFile() const {
assert(IsFileLexer(IncludeMacroStack[0]) && assert(IsFileLexer(IncludeMacroStack[0]) &&
"Top level include stack isn't our primary lexer?"); "Top level include stack isn't our primary lexer?");
return std::none_of(IncludeMacroStack.begin() + 1, IncludeMacroStack.end(), return std::none_of(IncludeMacroStack.begin() + 1, IncludeMacroStack.end(),
[](const IncludeStackInfo &ISI) -> bool { [this](const IncludeStackInfo &ISI) -> bool {
return IsFileLexer(ISI); return IsFileLexer(ISI);
}); });
} }