diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-10-26 19:39:46 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-10-26 19:39:46 +0000 |
commit | 0ef0aeca4f1bc1c3d5367ba7114c38dd3685e18c (patch) | |
tree | 029136bc0c39e9bc050f1df99a44353a1a14cb29 /clang/lib/Lex/ModuleMap.cpp | |
parent | f89a3f86237b3d9144a65415d2b83218b0cbd15f (diff) | |
download | bcm5719-llvm-0ef0aeca4f1bc1c3d5367ba7114c38dd3685e18c.tar.gz bcm5719-llvm-0ef0aeca4f1bc1c3d5367ba7114c38dd3685e18c.zip |
ModuleMap.cpp: fix VS2012 build
llvm-svn: 220644
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
-rw-r--r-- | clang/lib/Lex/ModuleMap.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/Lex/ModuleMap.cpp b/clang/lib/Lex/ModuleMap.cpp index 14eed0ae392..d929937c016 100644 --- a/clang/lib/Lex/ModuleMap.cpp +++ b/clang/lib/Lex/ModuleMap.cpp @@ -220,8 +220,9 @@ static bool violatesPrivateInclude(Module *RequestingModule, // 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"); |