[cfe-commits] r86004 - /cfe/trunk/lib/Analysis/UndefinedAssignmentChecker.cpp

Ted Kremenek kremenek at apple.com
Tue Nov 3 20:24:44 PST 2009


Author: kremenek
Date: Tue Nov  3 22:24:44 2009
New Revision: 86004

URL: http://llvm.org/viewvc/llvm-project?rev=86004&view=rev
Log:
Add FIXME.

Modified:
    cfe/trunk/lib/Analysis/UndefinedAssignmentChecker.cpp

Modified: cfe/trunk/lib/Analysis/UndefinedAssignmentChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/UndefinedAssignmentChecker.cpp?rev=86004&r1=86003&r2=86004&view=diff

==============================================================================
--- cfe/trunk/lib/Analysis/UndefinedAssignmentChecker.cpp (original)
+++ cfe/trunk/lib/Analysis/UndefinedAssignmentChecker.cpp Tue Nov  3 22:24:44 2009
@@ -42,6 +42,8 @@
   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)) {





More information about the cfe-commits mailing list