[cfe-commits] r92828 - /cfe/trunk/lib/CodeGen/CGVtable.cpp
Daniel Dunbar
daniel at zuster.org
Tue Jan 5 23:13:05 PST 2010
Author: ddunbar
Date: Wed Jan 6 01:13:04 2010
New Revision: 92828
URL: http://llvm.org/viewvc/llvm-project?rev=92828&view=rev
Log:
Fix (invalid) may-be-uninitialized 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=92828&r1=92827&r2=92828&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGVtable.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGVtable.cpp Wed Jan 6 01:13:04 2010
@@ -1490,7 +1490,8 @@
return;
}
- llvm::GlobalVariable::LinkageTypes Linkage;
+ llvm::GlobalVariable::LinkageTypes Linkage =
+ llvm::GlobalVariable::InternalLinkage;
if (RD->isInAnonymousNamespace() || !RD->hasLinkage())
Linkage = llvm::GlobalVariable::InternalLinkage;
else if (KeyFunction && !MD->isInlined()) {
More information about the cfe-commits
mailing list