]> granicus.if.org Git - clang/commitdiff
initialize variable and fix a bunch of test failures
authorNuno Lopes <nunoplopes@sapo.pt>
Tue, 20 May 2008 18:03:51 +0000 (18:03 +0000)
committerNuno Lopes <nunoplopes@sapo.pt>
Tue, 20 May 2008 18:03:51 +0000 (18:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51326 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDecl.cpp

index 9777c8897347d7551870c4b6a02da9cc3fab45f0..a050ab2d4bf897d5b8b480a750dcad61bc5b018e 100644 (file)
@@ -1309,7 +1309,7 @@ bool Sema::CheckForConstantInitializer(Expr *Init, QualType DclT) {
     // is of an appropriate width (this sort of code is apparently used
     // in some places).
     // FIXME: Add pedwarn?
-    Expr* SubE;
+    Expr* SubE = 0;
     if (ImplicitCastExpr* ICE = dyn_cast<ImplicitCastExpr>(Init))
       SubE = ICE->getSubExpr();
     else if (CastExpr* CE = dyn_cast<CastExpr>(Init))