Skip to content

Commit 0a41ac9

Browse files
committed
[NFC] initAssociatedTypeWitness is now unused in non-ptrauth builds
1 parent 4e7569e commit 0a41ac9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4333,7 +4333,6 @@ static bool doesNotRequireInstantiation(
43334333
#if SWIFT_PTRAUTH
43344334
static const unsigned swift_ptrauth_key_associated_type =
43354335
ptrauth_key_process_independent_code;
4336-
#endif
43374336

43384337
/// Given an unsigned pointer to an associated-type protocol witness,
43394338
/// fill in the appropriate slot in the witness table we're building.
@@ -4347,7 +4346,6 @@ static void initAssociatedTypeProtocolWitness(const Metadata **slot,
43474346
swift_ptrauth_init(slot, witness, reqt.Flags.getExtraDiscriminator());
43484347
}
43494348

4350-
#if SWIFT_PTRAUTH
43514349
static const unsigned swift_ptrauth_key_associated_conformance =
43524350
ptrauth_key_process_independent_code;
43534351

0 commit comments

Comments
 (0)