mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #36843 from nate-chandler/ptrauth-fixup-paf-callee-authinfo
[ptrauth] Adapted authinfo for async PAF callees.
This commit is contained in:
@@ -1169,9 +1169,14 @@ public:
|
||||
return fnPtr;
|
||||
}
|
||||
llvm::CallInst *createCall(FunctionPointer &fnPtr) override {
|
||||
PointerAuthInfo newAuthInfo;
|
||||
if (auto authInfo = fnPtr.getAuthInfo()) {
|
||||
newAuthInfo = PointerAuthInfo(authInfo.getCorrespondingCodeKey(),
|
||||
authInfo.getDiscriminator());
|
||||
}
|
||||
auto newFnPtr = FunctionPointer(
|
||||
FunctionPointer::Kind::Function, fnPtr.getPointer(subIGF),
|
||||
fnPtr.getAuthInfo(), Signature::forAsyncAwait(subIGF.IGM, origType));
|
||||
FunctionPointer::Kind::Function, fnPtr.getPointer(subIGF), newAuthInfo,
|
||||
Signature::forAsyncAwait(subIGF.IGM, origType));
|
||||
auto &Builder = subIGF.Builder;
|
||||
|
||||
auto argValues = args.claimAll();
|
||||
|
||||
Reference in New Issue
Block a user