r220644 - ModuleMap.cpp: fix VS2012 build
Hans Wennborg
hans at hanshq.net
Sun Oct 26 12:39:46 PDT 2014
Author: hans
Date: Sun Oct 26 14:39:46 2014
New Revision: 220644
URL: http://llvm.org/viewvc/llvm-project?rev=220644&view=rev
Log:
ModuleMap.cpp: fix VS2012 build
Modified:
cfe/trunk/lib/Lex/ModuleMap.cpp
Modified: cfe/trunk/lib/Lex/ModuleMap.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/ModuleMap.cpp?rev=220644&r1=220643&r2=220644&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/ModuleMap.cpp (original)
+++ cfe/trunk/lib/Lex/ModuleMap.cpp Sun Oct 26 14:39:46 2014
@@ -220,8 +220,9 @@ static bool violatesPrivateInclude(Modul
// as obtained from the lookup and as obtained from the module.
// This check is not cheap, so enable it only for debugging.
bool IsPrivate = false;
- for (auto *Hdrs : {&RequestedModule->PrivateHeaders,
- &RequestedModule->PrivateTextualHeaders})
+ auto HeaderList = {&RequestedModule->PrivateHeaders,
+ &RequestedModule->PrivateTextualHeaders};
+ for (auto *Hdrs : HeaderList)
IsPrivate |=
std::find(Hdrs->begin(), Hdrs->end(), IncFileEnt) != Hdrs->end();
assert(IsPrivate == IsPrivateRole && "inconsistent headers and roles");
More information about the cfe-commits
mailing list