Skip to content

Commit a35843c

Browse files
committed
stdlib: remove an unused-function
This function is only used in the ObjC interop case. Control it via the preprocesor.
1 parent 444aaf2 commit a35843c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stdlib/public/runtime/Metadata.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,11 +1556,13 @@ static ClassMetadata *_swift_initializeSuperclass(ClassMetadata *theClass,
15561556
return theClass;
15571557
}
15581558

1559+
#if SWIFT_OBJC_INTEROP
15591560
static MetadataAllocator &getResilientMetadataAllocator() {
15601561
// This should be constant-initialized, but this is safe.
15611562
static MetadataAllocator allocator;
15621563
return allocator;
15631564
}
1565+
#endif
15641566

15651567
/// Initialize the field offset vector for a dependent-layout class, using the
15661568
/// "Universal" layout strategy.

0 commit comments

Comments
 (0)