We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 477574c + 3fb34c4 commit aab538eCopy full SHA for aab538e
lib/Sema/TypeCheckAccess.cpp
@@ -1873,7 +1873,12 @@ class ExportabilityChecker : public DeclVisitor<ExportabilityChecker> {
1873
}
1874
1875
void visitExtensionDecl(ExtensionDecl *ED) {
1876
- if (shouldSkipChecking(ED->getExtendedNominal()))
+ auto extendedType = ED->getExtendedNominal();
1877
+ // TODO: Sometimes we have an extension that is marked valid but has no
1878
+ // extended type. Assert, just in case we see it while testing, but
1879
+ // don't crash. rdar://50401284
1880
+ assert(extendedType && "valid extension with no extended type?");
1881
+ if (!extendedType || shouldSkipChecking(extendedType))
1882
return;
1883
1884
// FIXME: We should allow conforming to implementation-only protocols,
0 commit comments