diff options
author | Nuno Lopes <nunoplopes@sapo.pt> | 2008-05-20 18:03:51 +0000 |
---|---|---|
committer | Nuno Lopes <nunoplopes@sapo.pt> | 2008-05-20 18:03:51 +0000 |
commit | 1e60e3b526ca71a04209bff6217b6d6eb9be0de6 (patch) | |
tree | 54702364014081a5d159ddc205353c201c2d7f51 /lib/Sema/SemaDecl.cpp | |
parent | f74279447d4ad0a0c0f2e6e6740d5a0f4c242e0c (diff) |
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
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<ImplicitCastExpr>(Init)) SubE = ICE->getSubExpr(); else if (CastExpr* CE = dyn_cast<CastExpr>(Init)) |