summaryrefslogtreecommitdiffstats
path: root/clang/lib
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
commit26751ffc53a2ef70f72b7a2ed3652b845c50d141 (patch)
tree5a9cc896c20e12730a5548813489e24bd566955f /clang/lib
parent7c0c64831c2470130dccf7fe148aae75d0c463f3 (diff)
downloadbcm5719-llvm-26751ffc53a2ef70f72b7a2ed3652b845c50d141.tar.gz
bcm5719-llvm-26751ffc53a2ef70f72b7a2ed3652b845c50d141.zip
Silence bogus GCC warning
llvm-svn: 92787
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/CodeGen/CGVtable.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGVtable.cpp b/clang/lib/CodeGen/CGVtable.cpp
index ccbb10505e5..40e774be13b 100644
--- a/clang/lib/CodeGen/CGVtable.cpp
+++ b/clang/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:
OpenPOWER on IntegriCloud