diff options
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; |