From: Nuno Lopes Date: Tue, 20 May 2008 18:03:51 +0000 (+0000) Subject: initialize variable and fix a bunch of test failures X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e60e3b526ca71a04209bff6217b6d6eb9be0de6;p=clang initialize variable and fix a bunch of test failures git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51326 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 9777c88973..a050ab2d4b 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -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(Init)) SubE = ICE->getSubExpr(); else if (CastExpr* CE = dyn_cast(Init))