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 | 27f8407406d8c6e8ac6a3a9bd80bd1c61b393b76 (patch) | |
tree | 362ad309c392e023a2b42ee387a5b1bd9be6bc4d /clang/lib/Sema/SemaDecl.cpp | |
parent | 652eaab03cff81a2e5cded81b24cf41064b110ab (diff) | |
download | bcm5719-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.cpp | 2 |
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)) |