Add FIXME.

llvm-svn: 86004
This commit is contained in:
Ted Kremenek 2009-11-04 04:24:44 +00:00
parent ef910047b2
commit 9346a56793
1 changed files with 2 additions and 0 deletions

View File

@ -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)) {