From 70993d37e8dd2031b623071372d7aebefb18c74c Mon Sep 17 00:00:00 2001 From: Teresa Johnson Date: Sat, 14 Jul 2018 01:50:14 +0000 Subject: [PATCH] Revert "[ThinLTO] Ensure we always select the same function copy to import" This reverts commit r337051. llvm-svn: 337082 --- clang/lib/CodeGen/BackendUtil.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 226a27b..2a02b83 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -1127,8 +1127,9 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M, // e.g. record required linkage changes. if (Summary->modulePath() == M->getModuleIdentifier()) continue; - // Add an entry to provoke importing by thinBackend. - ImportList[Summary->modulePath()].insert(GUID); + // Doesn't matter what value we plug in to the map, just needs an entry + // to provoke importing by thinBackend. + ImportList[Summary->modulePath()][GUID] = 1; } std::vector> OwnedImports; -- 2.7.4