diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-10-26 20:00:53 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-10-26 20:00:53 +0000 |
commit | d7580835cb86e3115e6ea50d1d95d43114793238 (patch) | |
tree | e2d27aafa561969ec7f1cd4dd810895c2924e75c /clang/lib/Lex/ModuleMap.cpp | |
parent | deb10060abb631a004ed5f70bef5dcd487863bbd (diff) | |
download | bcm5719-llvm-d7580835cb86e3115e6ea50d1d95d43114793238.tar.gz bcm5719-llvm-d7580835cb86e3115e6ea50d1d95d43114793238.zip |
ModuleMap.cpp: fix Windows build, take 2
llvm-svn: 220646
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 d929937c016..6a470ef886c 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; - auto HeaderList = {&RequestedModule->PrivateHeaders, - &RequestedModule->PrivateTextualHeaders}; + SmallVectorImpl<const FileEntry *> *HeaderList[] = + {&RequestedModule->PrivateHeaders, + &RequestedModule->PrivateTextualHeaders}; for (auto *Hdrs : HeaderList) IsPrivate |= std::find(Hdrs->begin(), Hdrs->end(), IncFileEnt) != Hdrs->end(); |