mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Serialization] Fix crashes when allowing compiler errors in modules
This commit is contained in:
@@ -47,7 +47,7 @@ public:
|
||||
/// (2) Walk over all ExtensionDecls to determine conformances.
|
||||
if (auto *e = dyn_cast<ExtensionDecl>(D)) {
|
||||
auto *ntd = e->getExtendedNominal();
|
||||
if (!isa<ProtocolDecl>(ntd)) {
|
||||
if (ntd && !isa<ProtocolDecl>(ntd)) {
|
||||
for (auto *conformance : e->getLocalConformances()) {
|
||||
if (isa<NormalProtocolConformance>(conformance)) {
|
||||
auto *proto = conformance->getProtocol();
|
||||
|
||||
Reference in New Issue
Block a user