forked from OSchip/llvm-project
Fix MSVC warning about missing 'this' from lambda default capture mode
llvm-svn: 285281
This commit is contained in:
parent
09947a3155
commit
d2611d50aa
|
@ -41,7 +41,7 @@ bool Preprocessor::isInPrimaryFile() const {
|
|||
assert(IsFileLexer(IncludeMacroStack[0]) &&
|
||||
"Top level include stack isn't our primary lexer?");
|
||||
return std::none_of(IncludeMacroStack.begin() + 1, IncludeMacroStack.end(),
|
||||
[](const IncludeStackInfo &ISI) -> bool {
|
||||
[this](const IncludeStackInfo &ISI) -> bool {
|
||||
return IsFileLexer(ISI);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue