Skip to content

Commit f1b4101

Browse files
committed
MergeFunctions: use new LLVM API to create a call.
rdar://problem/61734317
1 parent 5243d3c commit f1b4101

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)