Skip to content

Commit 1a3c582

Browse files
authored
Fix typos in declarations of swift_ptrauth_key_associated_type and swift_ptrauth_key_associated_conformance (#30363)
1 parent ee36c1c commit 1a3c582

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

stdlib/public/runtime/Metadata.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -4301,8 +4301,10 @@ static bool doesNotRequireInstantiation(
43014301
return true;
43024302
}
43034303

4304+
#if SWIFT_PTRAUTH
43044305
static const unsigned swift_ptrauth_key_associated_type =
4305-
swift_ptrauth_key_associated_type;
4306+
ptrauth_key_process_independent_code;
4307+
#endif
43064308

43074309
/// Given an unsigned pointer to an associated-type protocol witness,
43084310
/// fill in the appropriate slot in the witness table we're building.
@@ -4316,10 +4318,10 @@ static void initAssociatedTypeProtocolWitness(const Metadata **slot,
43164318
swift_ptrauth_init(slot, witness, reqt.Flags.getExtraDiscriminator());
43174319
}
43184320

4321+
#if SWIFT_PTRAUTH
43194322
static const unsigned swift_ptrauth_key_associated_conformance =
4320-
swift_ptrauth_key_associated_conformance;
4323+
ptrauth_key_process_independent_code;
43214324

4322-
#if SWIFT_PTRAUTH
43234325
/// Given an unsigned pointer to an associated-conformance protocol witness,
43244326
/// fill in the appropriate slot in the witness table we're building.
43254327
static void initAssociatedConformanceProtocolWitness(void **slot, void *witness,

0 commit comments

Comments
 (0)