]> granicus.if.org Git - clang/commitdiff
Remove superfluous initializer.
authorYaron Keren <yaron.keren@gmail.com>
Wed, 22 Feb 2017 14:32:39 +0000 (14:32 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Wed, 22 Feb 2017 14:32:39 +0000 (14:32 +0000)
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

index 7416894b81f712e52974ffdd0123fec7c9dccb98..103c7e191cc724fa21dd189498d7b1ec8362a3f2 100644 (file)
@@ -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: