From 1e60e3b526ca71a04209bff6217b6d6eb9be0de6 Mon Sep 17 00:00:00 2001 From: Nuno Lopes Date: Tue, 20 May 2008 18:03:51 +0000 Subject: [PATCH] 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 --- lib/Sema/SemaDecl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.50.1