[cfe-commits] r49708 - /cfe/trunk/lib/Analysis/DeadStores.cpp
Ted Kremenek
kremenek at apple.com
Mon Apr 14 21:11:48 PDT 2008
Author: kremenek
Date: Mon Apr 14 23:11:48 2008
New Revision: 49708
URL: http://llvm.org/viewvc/llvm-project?rev=49708&view=rev
Log:
Bug fix in dead stores: don't always check the liveness of the first decl
in a DeclStmt.
Modified:
cfe/trunk/lib/Analysis/DeadStores.cpp
Modified: cfe/trunk/lib/Analysis/DeadStores.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/DeadStores.cpp?rev=49708&r1=49707&r2=49708&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/DeadStores.cpp (original)
+++ cfe/trunk/lib/Analysis/DeadStores.cpp Mon Apr 14 23:11:48 2008
@@ -65,7 +65,7 @@
if (V->hasLocalStorage())
if (Expr* E = V->getInit()) {
- if (!Live(DS->getDecl(),AD)) {
+ if (!Live(V, AD)) {
// Special case: check for initializations with constants.
//
// e.g. : int x = 0;
More information about the cfe-commits
mailing list