Skip to content

Commit b0913fd

Browse files
committed
[PtrAuth] Corrected AsyncContextParent schema.
Previously, the schema used a key intended for pointers to code. An AsyncContextParent is actually a pointer to data, so that key was incorrect. Here, that error is corrected and the schema now uses the key for pointers to data.
1 parent 7091e0d commit b0913fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/IRGen.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ static void setPointerAuthOptions(PointerAuthOptions &opts,
690690
SpecialPointerAuthDiscriminators::ResilientClassStubInitCallback);
691691

692692
opts.AsyncContextParent =
693-
PointerAuthSchema(codeKey, /*address*/ true, Discrimination::Constant,
693+
PointerAuthSchema(dataKey, /*address*/ true, Discrimination::Constant,
694694
SpecialPointerAuthDiscriminators::AsyncContextParent);
695695

696696
opts.AsyncContextResume =

0 commit comments

Comments
 (0)