summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-04-13 01:52:32 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-04-13 01:52:32 +0000
commitef7555fbb2349d88fd21aca6bb4fb7e542573e5e (patch)
tree3dbc81e198fb202c84a12609b6e865817903bb13 /llvm
parent22ef956a45e01463f24e7b7d335606f301865b3f (diff)
downloadbcm5719-llvm-ef7555fbb2349d88fd21aca6bb4fb7e542573e5e.tar.gz
bcm5719-llvm-ef7555fbb2349d88fd21aca6bb4fb7e542573e5e.zip
Fix FunctionImport export list computation: need to take a reference to a map entry to actually modify it
From: Mehdi Amini <mehdi.amini@apple.com> llvm-svn: 266159
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionImport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionImport.cpp b/llvm/lib/Transforms/IPO/FunctionImport.cpp
index 63cfca424c5..088b114e787 100644
--- a/llvm/lib/Transforms/IPO/FunctionImport.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionImport.cpp
@@ -177,7 +177,7 @@ static void computeImportForFunction(
// Make exports in the source module.
auto ExportModulePath = CalleeSummary->modulePath();
if (ExportLists) {
- auto ExportList = (*ExportLists)[ExportModulePath];
+ auto &ExportList = (*ExportLists)[ExportModulePath];
ExportList.insert(GUID);
// Mark all functions and globals referenced by this function as exported
// to the outside if they are defined in the same source module.
OpenPOWER on IntegriCloud