Skip to content

Commit

Permalink
[LTO] Use a helper function to add a definition (NFC) (#105721)
Browse files Browse the repository at this point in the history
I missed this one when I introduced helper functions in:

  commit 3082a38
  Author: Kazu Hirata <kazu@google.com>
  Date:   Thu Aug 22 12:06:47 2024 -0700
  • Loading branch information
kazutakahirata authored Aug 22, 2024
1 parent 4e6ff75 commit ca48b01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/lib/Transforms/IPO/FunctionImport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,8 +600,8 @@ class WorkloadImportsManager : public ModuleImportsManager {
LLVM_DEBUG(dbgs() << "[Workload][Including]" << VI.name() << " from "
<< ExportingModule << " : "
<< Function::getGUID(VI.name()) << "\n");
ImportList[ExportingModule][VI.getGUID()] =
GlobalValueSummary::Definition;
FunctionImporter::addDefinition(ImportList, ExportingModule,
VI.getGUID());
GVI.onImportingSummary(*GVS);
if (ExportLists)
(*ExportLists)[ExportingModule].insert(VI);
Expand Down

0 comments on commit ca48b01

Please sign in to comment.