Skip to content

Commit ca48b01

Browse files
[LTO] Use a helper function to add a definition (NFC) (#105721)
I missed this one when I introduced helper functions in: commit 3082a38 Author: Kazu Hirata <[email protected]> Date: Thu Aug 22 12:06:47 2024 -0700
1 parent 4e6ff75 commit ca48b01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/IPO/FunctionImport.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -600,8 +600,8 @@ class WorkloadImportsManager : public ModuleImportsManager {
600600
LLVM_DEBUG(dbgs() << "[Workload][Including]" << VI.name() << " from "
601601
<< ExportingModule << " : "
602602
<< Function::getGUID(VI.name()) << "\n");
603-
ImportList[ExportingModule][VI.getGUID()] =
604-
GlobalValueSummary::Definition;
603+
FunctionImporter::addDefinition(ImportList, ExportingModule,
604+
VI.getGUID());
605605
GVI.onImportingSummary(*GVS);
606606
if (ExportLists)
607607
(*ExportLists)[ExportingModule].insert(VI);

0 commit comments

Comments
 (0)