summaryrefslogtreecommitdiffstats
path: root/clang/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
commit27f8407406d8c6e8ac6a3a9bd80bd1c61b393b76 (patch)
tree362ad309c392e023a2b42ee387a5b1bd9be6bc4d /clang/lib/Sema/SemaDecl.cpp
parent652eaab03cff81a2e5cded81b24cf41064b110ab (diff)
downloadbcm5719-llvm-27f8407406d8c6e8ac6a3a9bd80bd1c61b393b76.tar.gz
bcm5719-llvm-27f8407406d8c6e8ac6a3a9bd80bd1c61b393b76.zip
initialize variable and fix a bunch of test failures
llvm-svn: 51326
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r--clang/lib/Sema/SemaDecl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp
index 9777c889734..a050ab2d4bf 100644
--- a/clang/lib/Sema/SemaDecl.cpp
+++ b/clang/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))
OpenPOWER on IntegriCloud