aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-01-05 21:55:26 +0000
committerDouglas Gregor <dgregor@apple.com>2010-01-05 21:55:26 +0000
commit6356a62485a42afda2d0506fdcc6cfb878849d54 (patch)
treeb219f9fb1d532cdcb1a668b8b42aedf083946345 /lib/CodeGen/CGVtable.cpp
parentb469546a3bab426eec05fd21dd90a81cf75942da (diff)
Silence bogus GCC warning
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@92787 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index ccbb10505e..40e774be13 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -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: