Skip to content

Commit 6837225

Browse files
authored
Merge pull request #31009 from eeckstein/merge-funcs
2 parents 5243d3c + f1b4101 commit 6837225

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/LLVMPasses/LLVMMergeFunctions.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ bool SwiftMergeFunctions::replaceDirectCallers(Function *Old, Function *New,
11261126
cast<PointerType>(New->getType())->getAddressSpace());
11271127

11281128
Value *Callee = ConstantExpr::getBitCast(New, FPtrType);
1129-
CallInst *NewCI = Builder.CreateCall(Callee, NewArgs);
1129+
CallInst *NewCI = Builder.CreateCall(FType, Callee, NewArgs);
11301130
NewCI->setCallingConv(CI->getCallingConv());
11311131
// Don't transfer attributes from the function to the callee. Function
11321132
// attributes typically aren't relevant to the calling convention or ABI.

0 commit comments

Comments
 (0)