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.


_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to