From: Teresa Johnson Date: Mon, 16 Jul 2018 15:30:36 +0000 (+0000) Subject: Restore "[ThinLTO] Ensure we always select the same function copy to import" X-Git-Tag: llvmorg-7.0.0-rc1~1339 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b1d17f64e554e4eea6307284336e9ea87343d433;p=platform%2Fupstream%2Fllvm.git Restore "[ThinLTO] Ensure we always select the same function copy to import" This reverts commit r337082, restoring r337051, since the LLVM side patch has been restored. llvm-svn: 337185 --- diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 2a02b83..226a27b 100644 --- a/clang/lib/CodeGen/BackendUtil.cpp +++ b/clang/lib/CodeGen/BackendUtil.cpp @@ -1127,9 +1127,8 @@ static void runThinLTOBackend(ModuleSummaryIndex *CombinedIndex, Module *M, // e.g. record required linkage changes. if (Summary->modulePath() == M->getModuleIdentifier()) continue; - // 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; + // Add an entry to provoke importing by thinBackend. + ImportList[Summary->modulePath()].insert(GUID); } std::vector> OwnedImports;