[llvm] r266159 - Fix FunctionImport export list computation: need to take a reference to a map entry to actually modify it
Mehdi Amini via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 12 18:52:32 PDT 2016
Author: mehdi_amini
Date: Tue Apr 12 20:52:32 2016
New Revision: 266159
URL: http://llvm.org/viewvc/llvm-project?rev=266159&view=rev
Log:
Fix FunctionImport export list computation: need to take a reference to a map entry to actually modify it
From: Mehdi Amini <mehdi.amini at apple.com>
Modified:
llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
Modified: llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp?rev=266159&r1=266158&r2=266159&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp (original)
+++ llvm/trunk/lib/Transforms/IPO/FunctionImport.cpp Tue Apr 12 20:52:32 2016
@@ -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.
More information about the llvm-commits
mailing list