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 | 66279073f78bc5546ab7ed9b157a80767a8c741b (patch) | |
| tree | 2fb9c8d645c62839aa34368890a17f86690f7e2c /clang/lib | |
| parent | cd76f95dd07247d36eccd4fb897f398711263c40 (diff) | |
| download | bcm5719-llvm-66279073f78bc5546ab7ed9b157a80767a8c741b.tar.gz bcm5719-llvm-66279073f78bc5546ab7ed9b157a80767a8c741b.zip | |
Bug fix in dead stores: don't always check the liveness of the first decl
in a DeclStmt.
llvm-svn: 49708
Diffstat (limited to 'clang/lib')
| -rw-r--r-- | clang/lib/Analysis/DeadStores.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/DeadStores.cpp b/clang/lib/Analysis/DeadStores.cpp index 0f869dcf6b1..62a4e3e71e2 100644 --- a/clang/lib/Analysis/DeadStores.cpp +++ b/clang/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; |

