summaryrefslogtreecommitdiffstats
path: root/clang/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
commit8b0f4ff317be790b964821fd1ab854e3398dcc0c (patch)
tree1b430a0051eab4b1ab6608913cf030c0ded59856 /clang/lib/Checker/CheckDeadStores.cpp
parentb1cf1ca19a648989099c2f013b1a7bb4c41117d2 (diff)
downloadbcm5719-llvm-8b0f4ff317be790b964821fd1ab854e3398dcc0c.tar.gz
bcm5719-llvm-8b0f4ff317be790b964821fd1ab854e3398dcc0c.zip
Further adjustments to -Wglobal-constructors; works for references and direct
initializations now. llvm-svn: 110063
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 d6ea187957c..be1cce96ab5 100644
--- a/clang/lib/Checker/CheckDeadStores.cpp
+++ b/clang/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()))
OpenPOWER on IntegriCloud