File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -4387,9 +4387,6 @@ static Type getMemberForBaseType(LookupConformanceFn lookupConformances,
4387
4387
return DependentMemberType::get (baseType, name);
4388
4388
};
4389
4389
4390
- // If we don't have a substituted base type, fail.
4391
- if (!substBase) return failed ();
4392
-
4393
4390
if (auto *selfType = substBase->getAs <DynamicSelfType>())
4394
4391
substBase = selfType->getSelfType ();
4395
4392
@@ -4690,9 +4687,6 @@ static Type substType(Type derivedType,
4690
4687
if (auto depMemTy = dyn_cast<DependentMemberType>(type)) {
4691
4688
auto newBase = substType (depMemTy->getBase (),
4692
4689
substitutions, lookupConformances, options);
4693
- if (!newBase)
4694
- return Type ();
4695
-
4696
4690
return getMemberForBaseType (lookupConformances,
4697
4691
depMemTy->getBase (), newBase,
4698
4692
depMemTy->getAssocType (),
You can’t perform that action at this time.
0 commit comments