mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Sema] Compute superclass of deserialized protocols via generic signature
We don't need to serialize the protocol's superclass, we can compute it from the generic signature. Previously, we would drop the superclass while serializing because we didn't check the generic signature in SuperclassTypeRequest, which would cause us to cache `NULL` when we called `setSuperclass` for a protocol with a superclass constraint. Fixes rdar://50526401
This commit is contained in:
@@ -3290,7 +3290,6 @@ public:
|
||||
/*resolver=*/nullptr),
|
||||
S.addGenericEnvironmentRef(
|
||||
proto->getGenericEnvironment()),
|
||||
S.addTypeRef(proto->getSuperclass()),
|
||||
rawAccessLevel,
|
||||
inherited);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user