Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions stdlib/public/runtime/Metadata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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,
Expand Down