File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3973,16 +3973,16 @@ TypeBase::getContextSubstitutions(const DeclContext *dc,
3973
3973
return substitutions;
3974
3974
}
3975
3975
3976
+ const auto genericSig = dc->getGenericSignatureOfContext ();
3977
+ if (!genericSig)
3978
+ return substitutions;
3979
+
3976
3980
// Find the superclass type with the context matching that of the member.
3977
3981
auto *ownerNominal = dc->getSelfNominalTypeDecl ();
3978
3982
if (auto *ownerClass = dyn_cast<ClassDecl>(ownerNominal))
3979
3983
baseTy = baseTy->getSuperclassForDecl (ownerClass);
3980
3984
3981
3985
// Gather all of the substitutions for all levels of generic arguments.
3982
- auto genericSig = dc->getGenericSignatureOfContext ();
3983
- if (!genericSig)
3984
- return substitutions;
3985
-
3986
3986
auto params = genericSig->getGenericParams ();
3987
3987
unsigned n = params.size ();
3988
3988
You can’t perform that action at this time.
0 commit comments