aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/CheckDeadStores.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Checker/CheckDeadStores.cpp')
-rw-r--r--lib/Checker/CheckDeadStores.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Checker/CheckDeadStores.cpp b/lib/Checker/CheckDeadStores.cpp
index d6ea187957..be1cce96ab 100644
--- a/lib/Checker/CheckDeadStores.cpp
+++ b/lib/Checker/CheckDeadStores.cpp
@@ -217,7 +217,7 @@ public:
// If x is EVER assigned a new value later, don't issue
// a warning. This is because such initialization can be
// due to defensive programming.
- if (E->isConstantInitializer(Ctx))
+ if (E->isConstantInitializer(Ctx, false))
return;
if (DeclRefExpr *DRE=dyn_cast<DeclRefExpr>(E->IgnoreParenCasts()))