forked from OSchip/llvm-project
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
This commit is contained in:
parent
22ef956a45
commit
ef7555fbb2
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue