[cfe-commits] r125298 - /cfe/trunk/lib/Sema/SemaExpr.cpp
Daniel Dunbar
daniel at zuster.org
Thu Feb 10 10:24:25 PST 2011
Author: ddunbar
Date: Thu Feb 10 12:24:25 2011
New Revision: 125298
URL: http://llvm.org/viewvc/llvm-project?rev=125298&view=rev
Log:
Fix a gcc Wuninitialized false positive.
Modified:
cfe/trunk/lib/Sema/SemaExpr.cpp
Modified: cfe/trunk/lib/Sema/SemaExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaExpr.cpp?rev=125298&r1=125297&r2=125298&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaExpr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaExpr.cpp Thu Feb 10 12:24:25 2011
@@ -2369,7 +2369,7 @@
// variable is within the block, create a normal DeclRefExpr.
QualType type = VD->getType();
- ExprValueKind valueKind;
+ ExprValueKind valueKind = 0;
switch (D->getKind()) {
// Ignore all the non-ValueDecl kinds.
More information about the cfe-commits
mailing list