Skip to content

Commit 146ff7f

Browse files
committed
undo accidental reverted change
1 parent 7c4211f commit 146ff7f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/IPO/FunctionSpecialization.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ Function *FunctionSpecializer::createSpecialization(Function *F,
10671067
// clone must.
10681068
Clone->setLinkage(GlobalValue::InternalLinkage);
10691069

1070-
if (F->getEntryCount())
1070+
if (F->getEntryCount() && !ProfcheckDisableMetadataFixes)
10711071
Clone->setEntryCount(0);
10721072

10731073
// Initialize the lattice state of the arguments of the function clone,

0 commit comments

Comments
 (0)