Skip to content

Commit fe9b48c

Browse files
author
David Ungar
authored
Merge pull request #24922 from davidungar/isDiag
Add isDecl check.
2 parents ef1ad06 + 7122860 commit fe9b48c

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/Sema/CSDiag.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -733,12 +733,6 @@ void FailureDiagnosis::diagnoseUnviableLookupResults(
733733
return problem == firstProblem;
734734
});
735735

736-
ValueDecl *member = nullptr;
737-
for (auto cand : result.UnviableCandidates) {
738-
if (member == nullptr)
739-
member = cand.getDecl();
740-
}
741-
742736
auto instanceTy = baseObjTy;
743737
if (auto *MTT = instanceTy->getAs<AnyMetatypeType>())
744738
instanceTy = MTT->getInstanceType();

0 commit comments

Comments
 (0)