Extensive diagnostics: Do not add a location context for do...while statements.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70286 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp
index 8db4dfa..3c814db 100644
--- a/lib/Analysis/BugReporter.cpp
+++ b/lib/Analysis/BugReporter.cpp
@@ -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.