Skip to content

Commit 2a75179

Browse files
committed
Remove a couple of unnecessary hasInterfaceType() checks
We call isInvalid() a few lines above, so the interface type gets computed anyway.
1 parent ed77b86 commit 2a75179

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5274,10 +5274,6 @@ performMemberLookup(ConstraintKind constraintKind, DeclName memberName,
52745274
return;
52755275
}
52765276

5277-
// FIXME: Deal with broken recursion
5278-
if (!decl->hasInterfaceType())
5279-
return;
5280-
52815277
// Dig out the instance type and figure out what members of the instance type
52825278
// we are going to see.
52835279
auto baseTy = candidate.getBaseType();
@@ -5649,10 +5645,6 @@ performMemberLookup(ConstraintKind constraintKind, DeclName memberName,
56495645
return result;
56505646
}
56515647

5652-
// FIXME: Deal with broken recursion
5653-
if (!cand->hasInterfaceType())
5654-
continue;
5655-
56565648
result.addUnviable(getOverloadChoice(cand, /*isBridged=*/false,
56575649
/*isUnwrappedOptional=*/false),
56585650
MemberLookupResult::UR_Inaccessible);

0 commit comments

Comments
 (0)