Skip to content

Commit 4c857c5

Browse files
committed
Mark as API; use expanded-from-template return type.
1 parent 02bf6fd commit 4c857c5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

include/swift/Runtime/Metadata.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4379,9 +4379,8 @@ void verifyMangledNameRoundtrip(const Metadata *metadata);
43794379

43804380
#if !SWIFT_OBJC_INTEROP
43814381

4382-
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_SPI // SPI for swift-corelibs-foundation
4383-
ConstTargetMetadataPointer<swift::InProcess, TargetTypeContextDescriptor>
4384-
_swift_getTypeContextDescriptor(const Metadata *type);
4382+
SWIFT_CC(swift) SWIFT_RUNTIME_STDLIB_API
4383+
const TypeContextDescriptor *swift_getTypeContextDescriptor(const Metadata *type);
43854384

43864385
#endif // !SWIFT_OBJC_INTEROP
43874386

stdlib/public/runtime/Metadata.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3943,9 +3943,7 @@ void swift::verifyMangledNameRoundtrip(const Metadata *metadata) {
39433943

39443944
#if !SWIFT_OBJC_INTEROP
39453945

3946-
// SPI for swift-corelibs-foundation
3947-
ConstTargetMetadataPointer<swift::InProcess, TargetTypeContextDescriptor>
3948-
swift::_swift_getTypeContextDescriptor(const Metadata *type) {
3946+
const TypeContextDescriptor *swift::swift_getTypeContextDescriptor(const Metadata *type) {
39493947
return type->getTypeContextDescriptor();
39503948
}
39513949

0 commit comments

Comments
 (0)