[cfe-commits] r92787 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Douglas Gregor
dgregor at apple.com
Tue Jan 5 13:55:26 PST 2010
Author: dgregor
Date: Tue Jan 5 15:55:26 2010
New Revision: 92787
URL: http://llvm.org/viewvc/llvm-project?rev=92787&view=rev
Log:
Silence bogus GCC warning
Modified:
cfe/trunk/lib/CodeGen/CGVtable.cpp
Modified: cfe/trunk/lib/CodeGen/CGVtable.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGVtable.cpp?rev=92787&r1=92786&r2=92787&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Tue Jan 5 15:55:26 2010
@@ -1513,12 +1513,13 @@
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:
More information about the cfe-commits
mailing list