mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Serialization] Fix crashes when allowing compiler errors in modules
This commit is contained in:
@@ -247,7 +247,8 @@ static bool printModuleInterfaceDecl(Decl *D,
|
||||
// a cross-module extension.
|
||||
if (!extensionHasClangNode(Ext)) {
|
||||
auto ExtendedNominal = Ext->getExtendedNominal();
|
||||
if (Ext->getModuleContext() == ExtendedNominal->getModuleContext())
|
||||
if (!ExtendedNominal ||
|
||||
Ext->getModuleContext() == ExtendedNominal->getModuleContext())
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user