diff --git a/stdlib/public/runtime/Metadata.cpp b/stdlib/public/runtime/Metadata.cpp index f00bac2a135d5..c659df21d1809 100644 --- a/stdlib/public/runtime/Metadata.cpp +++ b/stdlib/public/runtime/Metadata.cpp @@ -4301,8 +4301,10 @@ static bool doesNotRequireInstantiation( return true; } +#if SWIFT_PTRAUTH static const unsigned swift_ptrauth_key_associated_type = - swift_ptrauth_key_associated_type; + ptrauth_key_process_independent_code; +#endif /// Given an unsigned pointer to an associated-type protocol witness, /// fill in the appropriate slot in the witness table we're building. @@ -4316,10 +4318,10 @@ static void initAssociatedTypeProtocolWitness(const Metadata **slot, swift_ptrauth_init(slot, witness, reqt.Flags.getExtraDiscriminator()); } +#if SWIFT_PTRAUTH static const unsigned swift_ptrauth_key_associated_conformance = - swift_ptrauth_key_associated_conformance; + ptrauth_key_process_independent_code; -#if SWIFT_PTRAUTH /// Given an unsigned pointer to an associated-conformance protocol witness, /// fill in the appropriate slot in the witness table we're building. static void initAssociatedConformanceProtocolWitness(void **slot, void *witness,