[cfe-commits] r70286 - /cfe/trunk/lib/Analysis/BugReporter.cpp
Ted Kremenek
kremenek at apple.com
Mon Apr 27 21:28:12 PDT 2009
Author: kremenek
Date: Mon Apr 27 23:28:12 2009
New Revision: 70286
URL: http://llvm.org/viewvc/llvm-project?rev=70286&view=rev
Log:
Extensive diagnostics: Do not add a location context for do...while statements.
Modified:
cfe/trunk/lib/Analysis/BugReporter.cpp
Modified: cfe/trunk/lib/Analysis/BugReporter.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Analysis/BugReporter.cpp?rev=70286&r1=70285&r2=70286&view=diff
==============================================================================
--- cfe/trunk/lib/Analysis/BugReporter.cpp (original)
+++ cfe/trunk/lib/Analysis/BugReporter.cpp Mon Apr 27 23:28:12 2009
@@ -1010,7 +1010,7 @@
const CFGBlock &Blk = *BE->getSrc();
const Stmt *Term = Blk.getTerminator();
- if (Term)
+ if (Term && !isa<DoStmt>(Term))
EB.addContext(Term);
// Are we jumping to the head of a loop? Add a special diagnostic.
More information about the cfe-commits
mailing list