File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -2391,7 +2391,12 @@ llvm::Function *IRGenFunction::getOrCreateResumePrjFn() {
2391
2391
auto &Builder = IGF.Builder ;
2392
2392
auto addr = Builder.CreateBitOrPointerCast (&(*it), IGF.IGM .Int8PtrPtrTy );
2393
2393
Address callerContextAddr (addr, IGF.IGM .getPointerAlignment ());
2394
- auto callerContext = Builder.CreateLoad (callerContextAddr);
2394
+ llvm::Value *callerContext = Builder.CreateLoad (callerContextAddr);
2395
+ if (auto schema = IGF.IGM .getOptions ().PointerAuth .AsyncContextParent ) {
2396
+ auto authInfo =
2397
+ PointerAuthInfo::emit (IGF, schema, addr, PointerAuthEntity ());
2398
+ callerContext = emitPointerAuthAuth (IGF, callerContext, authInfo);
2399
+ }
2395
2400
Builder.CreateRet (callerContext);
2396
2401
},
2397
2402
false /* isNoInline*/ ));
You can’t perform that action at this time.
0 commit comments