summaryrefslogtreecommitdiffstats
path: root/lib/Lex/PPLexerChange.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-10-27 10:51:29 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-10-27 10:51:29 +0000
commit3d0e96b676adbcf99aa752d77985b9643c849dfc (patch)
tree95bf7eb0e41d34224524ee361615fd7a2ff16753 /lib/Lex/PPLexerChange.cpp
parent926caf25d5ae278d9570309e562133a970cc80db (diff)
Fix MSVC warning about missing 'this' from lambda default capture mode
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@285281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PPLexerChange.cpp')
-rw-r--r--lib/Lex/PPLexerChange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/PPLexerChange.cpp b/lib/Lex/PPLexerChange.cpp
index d14779b7e3..4db17c344b 100644
--- a/lib/Lex/PPLexerChange.cpp
+++ b/lib/Lex/PPLexerChange.cpp
@@ -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);
});
}