r220646 - ModuleMap.cpp: fix Windows build, take 2

Hans Wennborg hans at hanshq.net
Sun Oct 26 13:00:54 PDT 2014


Author: hans
Date: Sun Oct 26 15:00:53 2014
New Revision: 220646

URL: http://llvm.org/viewvc/llvm-project?rev=220646&view=rev
Log:
ModuleMap.cpp: fix Windows build, take 2

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=220646&r1=220645&r2=220646&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/ModuleMap.cpp (original)
+++ cfe/trunk/lib/Lex/ModuleMap.cpp Sun Oct 26 15:00:53 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;
-  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();





More information about the cfe-commits mailing list