summaryrefslogtreecommitdiffstats
path: root/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2017-05-04 18:03:25 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2017-05-04 18:03:25 +0000
commit9667b91b13102c2e0e795cd5b167f8f452064f43 (patch)
tree838dc778e1166eb4cf403f93ec62a685e6662b69 /llvm/lib/LTO/ThinLTOCodeGenerator.cpp
parent3207d30fddbace150087655f17f286e135f4d68d (diff)
downloadbcm5719-llvm-9667b91b13102c2e0e795cd5b167f8f452064f43.tar.gz
bcm5719-llvm-9667b91b13102c2e0e795cd5b167f8f452064f43.zip
Re-apply r302108, "IR: Use pointers instead of GUIDs to represent edges in the module summary. NFCI."
with a fix for the clang backend. llvm-svn: 302176
Diffstat (limited to 'llvm/lib/LTO/ThinLTOCodeGenerator.cpp')
-rw-r--r--llvm/lib/LTO/ThinLTOCodeGenerator.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
index 440275c3425..b4ee7c2b2fb 100644
--- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
+++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp
@@ -119,8 +119,9 @@ static void computePrevailingCopies(
};
for (auto &I : Index) {
- if (HasMultipleCopies(I.second))
- PrevailingCopy[I.first] = getFirstDefinitionForLinker(I.second);
+ if (HasMultipleCopies(I.second.SummaryList))
+ PrevailingCopy[I.first] =
+ getFirstDefinitionForLinker(I.second.SummaryList);
}
}
OpenPOWER on IntegriCloud