diff options
| -rw-r--r-- | llvm/lib/LTO/ThinLTOCodeGenerator.cpp | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp index 33d0a0cd920..2867c730125 100644 --- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp +++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp @@ -884,6 +884,11 @@ void ThinLTOCodeGenerator::run() {    auto GUIDPreservedSymbols =        computeGUIDPreservedSymbols(PreservedSymbols, TMBuilder.TheTriple); +  // Make sure that every module has an entry in the ExportLists to enable +  // threaded access to this map below +  for (auto &DefinedGVSummaries : ModuleToDefinedGVSummaries) +    ExportLists[DefinedGVSummaries.first()]; +    // Parallel optimizer + codegen    {      ThreadPool Pool(ThreadCount);  | 

