Merge pull request #18963 from CodaFi/its-not-unusual-to-be-unused-by-anyone

[NFC] Silence a bunch of Wunused-variable diagnostics
This commit is contained in:
Robert Widmann
2018-08-25 09:24:44 -07:00
committed by GitHub
21 changed files with 35 additions and 35 deletions

View File

@@ -93,7 +93,7 @@ ValueDecl *RequirementFailure::getDeclRef() const {
locator = cs.getConstraintLocator(
ctor.withPathElement(PathEltKind::ApplyFunction)
.withPathElement(PathEltKind::ConstructorMember));
} else if (auto *UDE = dyn_cast<UnresolvedDotExpr>(anchor)) {
} else if (isa<UnresolvedDotExpr>(anchor)) {
ConstraintLocatorBuilder member(locator);
locator =
cs.getConstraintLocator(member.withPathElement(PathEltKind::Member));