diff options
author | John McCall <rjmccall@apple.com> | 2010-08-02 21:13:48 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2010-08-02 21:13:48 +0000 |
commit | 4204f07fc8bffe6d320b2de95fea274ccf37a17b (patch) | |
tree | 90f5c06c89e2673b40fd7352a497c661c4901d5c /lib/Checker/CheckDeadStores.cpp | |
parent | 73dfa3d30ab19d358b782c201201fa2a2dcf51a6 (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.cpp | 2 |
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())) |