diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-04-15 04:11:48 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-04-15 04:11:48 +0000 |
commit | 9d7af51f0f253e555bff391f7409d5826f5184fb (patch) | |
tree | 7d34ab645093a2446eb79165f9203dbc54fe1525 | |
parent | dace4c9d65eb86f96c4c5fbf4ac5920b7197a1b0 (diff) |
Bug fix in dead stores: don't always check the liveness of the first decl
in a DeclStmt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49708 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/DeadStores.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DeadStores.cpp b/lib/Analysis/DeadStores.cpp index 0f869dcf6b..62a4e3e71e 100644 --- a/lib/Analysis/DeadStores.cpp +++ b/lib/Analysis/DeadStores.cpp @@ -65,7 +65,7 @@ public: 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; |