From 0360af5d610ba0a65ac46eecf93758fe30457bcd Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 4 Nov 2009 04:24:44 +0000 Subject: [PATCH] Add FIXME. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86004 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Analysis/UndefinedAssignmentChecker.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(S)) ex = B->getRHS(); else if (const DeclStmt *DS = dyn_cast(S)) { -- 2.40.0