From 9346a56793cc1561db9918311b28da4a397e1101 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 4 Nov 2009 04:24:44 +0000 Subject: [PATCH] Add FIXME. llvm-svn: 86004 --- clang/lib/Analysis/UndefinedAssignmentChecker.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/clang/lib/Analysis/UndefinedAssignmentChecker.cpp b/clang/lib/Analysis/UndefinedAssignmentChecker.cpp index 9df58844dc31..c5b2401f47ce 100644 --- a/clang/lib/Analysis/UndefinedAssignmentChecker.cpp +++ b/clang/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(S)) ex = B->getRHS(); else if (const DeclStmt *DS = dyn_cast(S)) {