Skip to content

Commit bbf5795

Browse files
committed
[Async CC] Fixed AuthInfo of AsyncCallEmission.
Previously, an empty PtrAuthInfo was used to construct a FunctionPointer in AsyncCallEmission::getCalleeFunctionPointer. Here that is corrected to use the auth info that was attached to the callee function pointer (which is actually a pointer to an AsyncFunctionPointer struct).
1 parent e7ec8c2 commit bbf5795

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/IRGen/GenCall.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2350,7 +2350,8 @@ class AsyncCallEmission final : public CallEmission {
23502350
}
23512351
FunctionPointer getCalleeFunctionPointer() override {
23522352
return FunctionPointer(
2353-
FunctionPointer::KindTy::Function, calleeFunction, PointerAuthInfo(),
2353+
FunctionPointer::KindTy::Function, calleeFunction,
2354+
CurCallee.getFunctionPointer().getAuthInfo(),
23542355
IGF.IGM.getSignature(getCallee().getSubstFunctionType()));
23552356
}
23562357
SILType getParameterType(unsigned index) override {

0 commit comments

Comments
 (0)