Skip to content

Commit 215592c

Browse files
committed
Fix macOS issues with TypeNamePair.
1 parent ca38f02 commit 215592c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

stdlib/public/SDK/Foundation/CheckClass.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ static void logIfFirstOccurrence(Class objcClass, void (^log)(void)) {
5959
template <size_t N>
6060
StringRefLite(const char (&staticStr)[N]) : data(staticStr), length(N) {}
6161

62-
StringRefLite(TypeNamePair rawValue)
62+
StringRefLite(swift::TypeNamePair rawValue)
6363
: data(rawValue.data),
6464
length(rawValue.length){}
6565

stdlib/public/runtime/SwiftValue.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ - (NSString *)_swiftTypeName {
369369
TypeNamePair typeName
370370
= swift_getTypeName(getSwiftValueTypeMetadata(self), true);
371371

372-
return [NSString stringWithUTF8String: typeName.first];
372+
return [NSString stringWithUTF8String: typeName.data];
373373
}
374374
- (const OpaqueValue *)_swiftValue {
375375
return getValueFromSwiftValue(self).second;

0 commit comments

Comments
 (0)