diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-01-25 02:32:41 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-01-25 02:32:41 +0000 |
| commit | 7139af42ce181d285e9c5aa1301403c2eaec665c (patch) | |
| tree | 6b052eed4b53e3096fc6e517caa98713ddbac18c /clang/lib/Analysis/CheckDeadStores.cpp | |
| parent | cf2b7ba4a762ae463ef45ee3f004ef6e309e5124 (diff) | |
| download | bcm5719-llvm-7139af42ce181d285e9c5aa1301403c2eaec665c.tar.gz bcm5719-llvm-7139af42ce181d285e9c5aa1301403c2eaec665c.zip | |
Rename Expr::isConstantExpr to Expr::isConstantInitializer; this more
accurately states what the function is trying to do and how it is
different from Expr::isEvaluatable. Also get rid of a parameter that is both
unused and inaccurate.
llvm-svn: 62951
Diffstat (limited to 'clang/lib/Analysis/CheckDeadStores.cpp')
| -rw-r--r-- | clang/lib/Analysis/CheckDeadStores.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CheckDeadStores.cpp b/clang/lib/Analysis/CheckDeadStores.cpp index 4f51cd8d9ae..d5e5f4c9b2a 100644 --- a/clang/lib/Analysis/CheckDeadStores.cpp +++ b/clang/lib/Analysis/CheckDeadStores.cpp @@ -195,7 +195,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->isConstantExpr(Ctx,NULL)) + if (!E->isConstantInitializer(Ctx)) Report(V, DeadInit, V->getLocation(), E->getSourceRange()); } } |

