aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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))