From 45af3322f281cf6ade78b31717d4679f492c3071 Mon Sep 17 00:00:00 2001 From: Yaron Keren Date: Wed, 22 Feb 2017 14:32:39 +0000 Subject: [PATCH] Remove superfluous initializer. The following fully-covered switch either sets value to External or exits the function. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@295839 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ASTContext.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp index 7416894b81..103c7e191c 100644 --- a/lib/AST/ASTContext.cpp +++ b/lib/AST/ASTContext.cpp @@ -8810,7 +8810,7 @@ static GVALinkage basicGVALinkageForFunction(const ASTContext &Context, if (!FD->isExternallyVisible()) return GVA_Internal; - GVALinkage External = GVA_StrongExternal; + GVALinkage External; switch (FD->getTemplateSpecializationKind()) { case TSK_Undeclared: case TSK_ExplicitSpecialization: -- 2.40.0