]> granicus.if.org Git - clang/commitdiff
Silence bogus GCC warning
authorDouglas Gregor <dgregor@apple.com>
Tue, 5 Jan 2010 21:55:26 +0000 (21:55 +0000)
committerDouglas Gregor <dgregor@apple.com>
Tue, 5 Jan 2010 21:55:26 +0000 (21:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92787 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

index ccbb10505e59e0b4ec21a9e5cfb6a993b24abf4b..40e774be13b1deba9c681002b9527571146dc51f 100644 (file)
@@ -1513,12 +1513,13 @@ void CGVtableInfo::MaybeEmitVtable(GlobalDecl GD) {
   else if (KeyFunction)
     Linkage = llvm::GlobalVariable::WeakODRLinkage;
   else {
+    Linkage = llvm::GlobalVariable::WeakODRLinkage;
+    
     switch (RD->getTemplateSpecializationKind()) {
     case TSK_Undeclared:
     case TSK_ExplicitSpecialization:
     case TSK_ImplicitInstantiation:
     case TSK_ExplicitInstantiationDefinition:
-      Linkage = llvm::GlobalVariable::WeakODRLinkage;
       break;
 
     case TSK_ExplicitInstantiationDeclaration: