[cfe-commits] r51326 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Nuno Lopes
nunoplopes at sapo.pt
Tue May 20 11:03:51 PDT 2008
Author: nlopes
Date: Tue May 20 13:03:51 2008
New Revision: 51326
URL: http://llvm.org/viewvc/llvm-project?rev=51326&view=rev
Log:
initialize variable and fix a bunch of test failures
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=51326&r1=51325&r2=51326&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Tue May 20 13:03:51 2008
@@ -1309,7 +1309,7 @@
// 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))
More information about the cfe-commits
mailing list