From 51667bf5608b571e62918efcca4425e9d15e0b45 Mon Sep 17 00:00:00 2001 From: Dan Zheng Date: Fri, 8 Nov 2019 13:33:06 -0800 Subject: [PATCH] Fix unused variable warning. Introduced in https://github.com/apple/swift/pull/28080: `swift-DEVELOPMENT-SNAPSHOT-2019-10-31-a -> tensorflow` merge. --- lib/Sema/DerivedConformanceVectorProtocol.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/Sema/DerivedConformanceVectorProtocol.cpp b/lib/Sema/DerivedConformanceVectorProtocol.cpp index 620a7d7da08d6..f441196d21318 100644 --- a/lib/Sema/DerivedConformanceVectorProtocol.cpp +++ b/lib/Sema/DerivedConformanceVectorProtocol.cpp @@ -72,7 +72,6 @@ static Type getVectorProtocolVectorSpaceScalarAssocType( // the given context, or `nullptr` if `VectorSpaceScalar` cannot be derived. static Type deriveVectorProtocol_VectorSpaceScalar(NominalTypeDecl *nominal, DeclContext *DC) { - auto &C = DC->getASTContext(); // Nominal type must be a struct. (Zero stored properties is okay.) if (!isa(nominal)) return nullptr;