Skip to content

Commit 75fc060

Browse files
Merge pull request swiftlang#33216 from nate-chandler/swift_compareTypeContextDescriptors/ptr-auth
[Runtime] Auth args to compareTypeContextDescriptors.
2 parents 5be168a + 79dd09c commit 75fc060

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2063,6 +2063,11 @@ bool swift::equalContexts(const ContextDescriptor *a,
20632063
SWIFT_CC(swift)
20642064
bool swift::swift_compareTypeContextDescriptors(
20652065
const TypeContextDescriptor *a, const TypeContextDescriptor *b) {
2066+
a = swift_auth_data_non_address(
2067+
a, SpecialPointerAuthDiscriminators::TypeDescriptor);
2068+
b = swift_auth_data_non_address(
2069+
b, SpecialPointerAuthDiscriminators::TypeDescriptor);
2070+
20662071
// The implementation is the same as the implementation of
20672072
// swift::equalContexts except that the handling of non-type
20682073
// context descriptors and casts to TypeContextDescriptor are removed.

0 commit comments

Comments
 (0)