]> granicus.if.org Git - clang/commitdiff
Add FIXME.
authorTed Kremenek <kremenek@apple.com>
Wed, 4 Nov 2009 04:24:44 +0000 (04:24 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 4 Nov 2009 04:24:44 +0000 (04:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86004 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/UndefinedAssignmentChecker.cpp

index 9df58844dc3130a66416f89bf5f4f889ee5eca09..c5b2401f47ce30915ded8bbd595aed7bfccc6a86 100644 (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)) {