mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Dependencies: Don't crash if an extension couldn't be resolved.
Swift SVN r28474
This commit is contained in:
@@ -169,6 +169,8 @@ static bool emitReferenceDependencies(DiagnosticEngine &diags,
|
||||
case DeclKind::Extension: {
|
||||
auto *ED = cast<ExtensionDecl>(D);
|
||||
auto *NTD = ED->getExtendedType()->getAnyNominal();
|
||||
if (!NTD)
|
||||
break;
|
||||
if (NTD->hasAccessibility() &&
|
||||
NTD->getFormalAccess() == Accessibility::Private) {
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user