summaryrefslogtreecommitdiffstats
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
commitd2611d50aa350ac14cf880b89061033bd0819a75 (patch)
treee8358dd2dc73e1d082d2271245923d4c38a4bf8c
parent09947a3155723ce3dba976262f9e131d775f8196 (diff)
downloadbcm5719-llvm-d2611d50aa350ac14cf880b89061033bd0819a75.tar.gz
bcm5719-llvm-d2611d50aa350ac14cf880b89061033bd0819a75.zip
Fix MSVC warning about missing 'this' from lambda default capture mode
llvm-svn: 285281
-rw-r--r--clang/lib/Lex/PPLexerChange.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp
index d14779b7e3c..4db17c344b6 100644
--- a/clang/lib/Lex/PPLexerChange.cpp
+++ b/clang/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);
});
}
OpenPOWER on IntegriCloud