diff options
| author | Teresa Johnson <tejohnson@google.com> | 2018-07-13 21:35:58 +0000 |
|---|---|---|
| committer | Teresa Johnson <tejohnson@google.com> | 2018-07-13 21:35:58 +0000 |
| commit | 9fe8af7e00983fc552098b8c83bbc178bea8b208 (patch) | |
| tree | ac5077687f93f3d25cbac5e0f79967d867a7e031 /clang/lib/CodeGen | |
| parent | d94c0594d966e9ee11aeb05e2917098bd584361e (diff) | |
| download | bcm5719-llvm-9fe8af7e00983fc552098b8c83bbc178bea8b208.tar.gz bcm5719-llvm-9fe8af7e00983fc552098b8c83bbc178bea8b208.zip | |
[ThinLTO] Ensure we always select the same function copy to import
Clang change to reflect the FunctionsToImportTy type change
in the llvm changes for D48670.
llvm-svn: 337051
Diffstat (limited to 'clang/lib/CodeGen')
| -rw-r--r-- | clang/lib/CodeGen/BackendUtil.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/CodeGen/BackendUtil.cpp b/clang/lib/CodeGen/BackendUtil.cpp index 2a02b838d22..226a27b2161 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<std::unique_ptr<llvm::MemoryBuffer>> OwnedImports; |

