File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -1164,9 +1164,14 @@ class AsyncPartialApplicationForwarderEmission
11641164 return fnPtr;
11651165 }
11661166 llvm::CallInst *createCall (FunctionPointer &fnPtr) override {
1167+ PointerAuthInfo newAuthInfo;
1168+ if (auto authInfo = fnPtr.getAuthInfo ()) {
1169+ newAuthInfo = PointerAuthInfo (authInfo.getCorrespondingCodeKey (),
1170+ authInfo.getDiscriminator ());
1171+ }
11671172 auto newFnPtr = FunctionPointer (
1168- FunctionPointer::Kind::Function, fnPtr.getPointer (subIGF),
1169- fnPtr. getAuthInfo (), Signature::forAsyncAwait (subIGF.IGM , origType));
1173+ FunctionPointer::Kind::Function, fnPtr.getPointer (subIGF), newAuthInfo,
1174+ Signature::forAsyncAwait (subIGF.IGM , origType));
11701175 auto &Builder = subIGF.Builder ;
11711176
11721177 auto argValues = args.claimAll ();
You can’t perform that action at this time.
0 commit comments