Skip to content

Commit 8ab35e2

Browse files
authored
Merge pull request #17948 from CodaFi/simplify-simplify-member-constraint
2 parents 9788492 + df1e0fa commit 8ab35e2

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3546,12 +3546,6 @@ ConstraintSystem::SolutionKind ConstraintSystem::simplifyMemberConstraint(
35463546

35473547
// If the lookup found no hits at all (either viable or unviable), diagnose it
35483548
// as such and try to recover in various ways.
3549-
3550-
auto instanceTy = baseObjTy;
3551-
if (auto MTT = instanceTy->getAs<MetatypeType>())
3552-
instanceTy = MTT->getInstanceType();
3553-
3554-
// Value member lookup has some hacks too.
35553549
if (shouldAttemptFixes() && baseObjTy->getOptionalObjectType()) {
35563550
// If the base type was an optional, look through it.
35573551

0 commit comments

Comments
 (0)