Skip to content

Commit fd641cd

Browse files
committed
Merge pull request #2363 from compnerd/unused-function
stdlib: remove an unused-function
2 parents 3ed1542 + a35843c commit fd641cd

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
@@ -1576,11 +1576,13 @@ static ClassMetadata *_swift_initializeSuperclass(ClassMetadata *theClass,
15761576
return theClass;
15771577
}
15781578

1579+
#if SWIFT_OBJC_INTEROP
15791580
static MetadataAllocator &getResilientMetadataAllocator() {
15801581
// This should be constant-initialized, but this is safe.
15811582
static MetadataAllocator allocator;
15821583
return allocator;
15831584
}
1585+
#endif
15841586

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

0 commit comments

Comments
 (0)