aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaDecl.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2008-05-20 18:03:51 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2008-05-20 18:03:51 +0000
commit1e60e3b526ca71a04209bff6217b6d6eb9be0de6 (patch)
tree54702364014081a5d159ddc205353c201c2d7f51 /lib/Sema/SemaDecl.cpp
parentf74279447d4ad0a0c0f2e6e6740d5a0f4c242e0c (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.cpp2
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))