summaryrefslogtreecommitdiffstats
path: root/clang/lib/Checker/CheckDeadStores.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Checker/CheckDeadStores.cpp')
-rw-r--r--clang/lib/Checker/CheckDeadStores.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Checker/CheckDeadStores.cpp b/clang/lib/Checker/CheckDeadStores.cpp
index 38961000d3f..63b2f563ca1 100644
--- a/clang/lib/Checker/CheckDeadStores.cpp
+++ b/clang/lib/Checker/CheckDeadStores.cpp
@@ -203,7 +203,7 @@ public:
if (isa<CXXConstructExpr>(E))
return;
- if (isa<CXXExprWithTemporaries>(E))
+ if (isa<ExprWithCleanups>(E))
return;
// A dead initialization is a variable that is dead after it
OpenPOWER on IntegriCloud