Skip to content

Commit 72f5ac4

Browse files
committed
llvm-reduce: Stop setting intermediate cloned function names
The name will be stolen from the original function, so there's no point in setting an initial suffixed name.
1 parent 85c8100 commit 72f5ac4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/tools/llvm-reduce/deltas/ReduceOperandsToArgs.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,8 @@ static void substituteOperandWithArgument(Function *OldF,
138138
OldF->getFunctionType()->isVarArg());
139139

140140
// Create the new function...
141-
Function *NewF =
142-
Function::Create(FTy, OldF->getLinkage(), OldF->getAddressSpace(),
143-
OldF->getName(), OldF->getParent());
141+
Function *NewF = Function::Create(
142+
FTy, OldF->getLinkage(), OldF->getAddressSpace(), "", OldF->getParent());
144143

145144
// In order to preserve function order, we move NewF behind OldF
146145
NewF->removeFromParent();

0 commit comments

Comments
 (0)