Skip to content

Commit caf73e5

Browse files
fix: missing emitting thinlto_src_module to alias
1 parent ec2db33 commit caf73e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/FunctionImport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1699,7 +1699,7 @@ Expected<bool> FunctionImporter::importFunctions(
16991699
LLVM_DEBUG(dbgs() << "Is importing aliasee fn " << GO->getGUID() << " "
17001700
<< GO->getName() << " from "
17011701
<< SrcModule->getSourceFileName() << "\n");
1702-
if (EnableImportMetadata) {
1702+
if (EnableImportMetadata || EnableMemProfContextDisambiguation) {
17031703
// Add 'thinlto_src_module' and 'thinlto_src_file' metadata for
17041704
// statistics and debugging.
17051705
Fn->setMetadata(

0 commit comments

Comments
 (0)