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 @@ -3949,16 +3949,16 @@ TypeBase::getContextSubstitutions(const DeclContext *dc,
3949
3949
return substitutions;
3950
3950
}
3951
3951
3952
+ const auto genericSig = dc->getGenericSignatureOfContext ();
3953
+ if (!genericSig)
3954
+ return substitutions;
3955
+
3952
3956
// Find the superclass type with the context matching that of the member.
3953
3957
auto *ownerNominal = dc->getSelfNominalTypeDecl ();
3954
3958
if (auto *ownerClass = dyn_cast<ClassDecl>(ownerNominal))
3955
3959
baseTy = baseTy->getSuperclassForDecl (ownerClass);
3956
3960
3957
3961
// Gather all of the substitutions for all levels of generic arguments.
3958
- auto genericSig = dc->getGenericSignatureOfContext ();
3959
- if (!genericSig)
3960
- return substitutions;
3961
-
3962
3962
auto params = genericSig->getGenericParams ();
3963
3963
unsigned n = params.size ();
3964
3964
You can’t perform that action at this time.
0 commit comments