Skip to content

Commit 59c33a0

Browse files
committed
[Cloning] Remove unused parameter from CloneAndPruneFunctionInto() (NFC)
1 parent 3a1b380 commit 59c33a0

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

llvm/include/llvm/Transforms/Utils/Cloning.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,7 @@ void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
185185
ValueToValueMapTy &VMap, bool ModuleLevelChanges,
186186
SmallVectorImpl<ReturnInst*> &Returns,
187187
const char *NameSuffix = "",
188-
ClonedCodeInfo *CodeInfo = nullptr,
189-
Instruction *TheCall = nullptr);
188+
ClonedCodeInfo *CodeInfo = nullptr);
190189

191190
/// This class captures the data input to the InlineFunction call, and records
192191
/// the auxiliary results produced by it.

llvm/lib/Transforms/Utils/CloneFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -774,7 +774,7 @@ void llvm::CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
774774
void llvm::CloneAndPruneFunctionInto(
775775
Function *NewFunc, const Function *OldFunc, ValueToValueMapTy &VMap,
776776
bool ModuleLevelChanges, SmallVectorImpl<ReturnInst *> &Returns,
777-
const char *NameSuffix, ClonedCodeInfo *CodeInfo, Instruction *TheCall) {
777+
const char *NameSuffix, ClonedCodeInfo *CodeInfo) {
778778
CloneAndPruneIntoFromInst(NewFunc, OldFunc, &OldFunc->front().front(), VMap,
779779
ModuleLevelChanges, Returns, NameSuffix, CodeInfo);
780780
}

llvm/lib/Transforms/Utils/InlineFunction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1947,7 +1947,7 @@ llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
19471947
// happy with whatever the cloner can do.
19481948
CloneAndPruneFunctionInto(Caller, CalledFunc, VMap,
19491949
/*ModuleLevelChanges=*/false, Returns, ".i",
1950-
&InlinedFunctionInfo, &CB);
1950+
&InlinedFunctionInfo);
19511951
// Remember the first block that is newly cloned over.
19521952
FirstNewBlock = LastBlock; ++FirstNewBlock;
19531953

0 commit comments

Comments
 (0)