aboutsummaryrefslogtreecommitdiff
path: root/lib/Checker/CheckDeadStores.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-02 21:13:48 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-02 21:13:48 +0000
commit4204f07fc8bffe6d320b2de95fea274ccf37a17b (patch)
tree90f5c06c89e2673b40fd7352a497c661c4901d5c /lib/Checker/CheckDeadStores.cpp
parent73dfa3d30ab19d358b782c201201fa2a2dcf51a6 (diff)
Further adjustments to -Wglobal-constructors; works for references and direct
initializations now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@110063 91177308-0d34-0410-b5e6-96231b3b80d8
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()))