summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CheckDeadStores.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-08-09 00:41:45 +0000
committerTed Kremenek <kremenek@apple.com>2008-08-09 00:41:45 +0000
commit4455a9d3785673aee04808752bacf3687d618be3 (patch)
tree4eac40b73b8f49548a9c3fc133bb77a2527e607c /clang/lib/Analysis/CheckDeadStores.cpp
parent5c45c9b0632a063815fc637debf2b22199803964 (diff)
downloadbcm5719-llvm-4455a9d3785673aee04808752bacf3687d618be3.tar.gz
bcm5719-llvm-4455a9d3785673aee04808752bacf3687d618be3.zip
Added FIXME.
llvm-svn: 54568
Diffstat (limited to 'clang/lib/Analysis/CheckDeadStores.cpp')
-rw-r--r--clang/lib/Analysis/CheckDeadStores.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Analysis/CheckDeadStores.cpp b/clang/lib/Analysis/CheckDeadStores.cpp
index 9d9e68d2ef8..73cb3f786b2 100644
--- a/clang/lib/Analysis/CheckDeadStores.cpp
+++ b/clang/lib/Analysis/CheckDeadStores.cpp
@@ -133,6 +133,7 @@ public:
if (VD->getType()->isPointerType()) {
if (IntegerLiteral* L =
dyn_cast<IntegerLiteral>(B->getRHS()->IgnoreParenCasts()))
+ // FIXME: Probably should have an Expr::isNullPointerConstant.
if (L->getValue() == 0)
return;
}
OpenPOWER on IntegriCloud