We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 84a21d1 commit 99e518bCopy full SHA for 99e518b
stdlib/public/runtime/Metadata.cpp
@@ -49,6 +49,8 @@
49
#endif
50
#if SWIFT_PTRAUTH
51
#include <ptrauth.h>
52
+#endif
53
+#if SWIFT_OBJC_INTEROP
54
extern "C" void _objc_setClassCopyFixupHandler(void (* _Nonnull newFixupHandler)
55
(Class _Nonnull oldClass, Class _Nonnull newClass));
56
@@ -395,7 +397,7 @@ static GenericMetadataCache &unsafeGetInitializedCache(
395
397
return lazyCache->unsafeGetAlreadyInitialized();
396
398
}
399
-#if SWIFT_PTRAUTH
400
+#if SWIFT_PTRAUTH && SWIFT_OBJC_INTEROP
401
static void swift_objc_classCopyFixupHandler(Class oldClass, Class newClass) {
402
auto oldClassMetadata = reinterpret_cast<const ClassMetadata *>(oldClass);
403
0 commit comments