File tree Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Expand file tree Collapse file tree 1 file changed +3
-8
lines changed Original file line number Diff line number Diff line change @@ -407,14 +407,9 @@ Type ExistentialLayout::getSuperclass() const {
407
407
return explicitSuperclass;
408
408
409
409
for (auto protoDecl : getProtocols ()) {
410
- // If we have a generic signature, check there, because it
411
- // will pick up superclass constraints from protocols that we
412
- // refine as well.
413
- if (auto genericSig = protoDecl->getGenericSignature ()) {
414
- if (auto superclass = genericSig->getSuperclassBound (
415
- protoDecl->getSelfInterfaceType ()))
416
- return superclass;
417
- } else if (auto superclass = protoDecl->getSuperclass ())
410
+ auto genericSig = protoDecl->getGenericSignature ();
411
+ if (auto superclass = genericSig->getSuperclassBound (
412
+ protoDecl->getSelfInterfaceType ()))
418
413
return superclass;
419
414
}
420
415
You can’t perform that action at this time.
0 commit comments