forked from OSchip/llvm-project
Another attempt to fix warning discovered by r313487. [-Wunused-lambda-capture]
llvm-svn: 313521
This commit is contained in:
parent
e66dc01bbf
commit
55a27d3c14
|
@ -42,7 +42,7 @@ bool Preprocessor::isInPrimaryFile() const {
|
||||||
"Top level include stack isn't our primary lexer?");
|
"Top level include stack isn't our primary lexer?");
|
||||||
return std::none_of(
|
return std::none_of(
|
||||||
IncludeMacroStack.begin() + 1, IncludeMacroStack.end(),
|
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
|
/// getCurrentLexer - Return the current file lexer being lexed from. Note
|
||||||
|
|
Loading…
Reference in New Issue