File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -3219,16 +3219,8 @@ SuperclassDeclRequest::evaluate(Evaluator &evaluator,
3219
3219
// Protocols may get their superclass bound from a `where Self : Superclass`
3220
3220
// clause.
3221
3221
if (auto *proto = dyn_cast<ProtocolDecl>(subject)) {
3222
- // If the protocol came from a serialized module, compute the superclass via
3223
- // its generic signature.
3224
- if (proto->wasDeserialized ()) {
3225
- auto superTy = proto->getGenericSignature ()
3226
- ->getSuperclassBound (proto->getSelfInterfaceType ());
3227
- if (superTy)
3228
- return superTy->getClassOrBoundGenericClass ();
3229
- }
3222
+ assert (!proto->wasDeserialized ());
3230
3223
3231
- // Otherwise check the where clause.
3232
3224
auto selfBounds = getSelfBoundsFromWhereClause (proto);
3233
3225
for (auto inheritedNominal : selfBounds.decls )
3234
3226
if (auto classDecl = dyn_cast<ClassDecl>(inheritedNominal))
You can’t perform that action at this time.
0 commit comments