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.
2 parents daf6d57 + b4db7ef commit aecbd80Copy full SHA for aecbd80
stdlib/public/runtime/ProtocolConformance.cpp
@@ -175,6 +175,11 @@ static MetadataResponse getSuperclassForMaybeIncompleteMetadata(
175
// always fully set up, so we can just skip it and fetch the Subclass field.
176
if (classMetadata->isTypeMetadata() && classMetadata->isArtificialSubclass())
177
return {classMetadata->Superclass, MetadataState::Complete};
178
+
179
+ // Pure ObjC classes are already set up, and the code below will not be
180
+ // happy with them.
181
+ if (!classMetadata->isTypeMetadata())
182
+ return {classMetadata->Superclass, MetadataState::Complete};
183
#endif
184
185
MetadataState metadataState;
0 commit comments