aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/UndefinedAssignmentChecker.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-11-04 04:24:44 +0000
committerTed Kremenek <kremenek@apple.com>2009-11-04 04:24:44 +0000
commit0360af5d610ba0a65ac46eecf93758fe30457bcd (patch)
tree9f376853e76d6c7a9a3f13fcf812f995817e9e7f /lib/Analysis/UndefinedAssignmentChecker.cpp
parentb107c4b7efb907d75620cd3c17f82fe27dc5b745 (diff)
Add FIXME.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86004 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/UndefinedAssignmentChecker.cpp')
-rw-r--r--lib/Analysis/UndefinedAssignmentChecker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Analysis/UndefinedAssignmentChecker.cpp b/lib/Analysis/UndefinedAssignmentChecker.cpp
index 9df58844dc..c5b2401f47 100644
--- a/lib/Analysis/UndefinedAssignmentChecker.cpp
+++ b/lib/Analysis/UndefinedAssignmentChecker.cpp
@@ -42,6 +42,8 @@ void UndefinedAssignmentChecker::PreVisitBind(CheckerContext &C,
EnhancedBugReport *R = new EnhancedBugReport(*BT, BT->getName().c_str(), N);
const Expr *ex = 0;
+ // FIXME: This check needs to be done on the expression doing the
+ // assignment, not the "store" expression.
if (const BinaryOperator *B = dyn_cast<BinaryOperator>(S))
ex = B->getRHS();
else if (const DeclStmt *DS = dyn_cast<DeclStmt>(S)) {