diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-04-28 04:28:12 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-04-28 04:28:12 +0000 |
commit | a902d5599961dbeb91631ec912fae6a10f6c2839 (patch) | |
tree | 800c95022c6786e52c0d255b79df1bcf5a755cc2 /lib/Analysis/BugReporter.cpp | |
parent | 8bd4d037d837e7922c3661d6158229da58a03887 (diff) |
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
Diffstat (limited to 'lib/Analysis/BugReporter.cpp')
-rw-r--r-- | lib/Analysis/BugReporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/BugReporter.cpp b/lib/Analysis/BugReporter.cpp index 8db4dfa247..3c814dbb67 100644 --- a/lib/Analysis/BugReporter.cpp +++ b/lib/Analysis/BugReporter.cpp @@ -1010,7 +1010,7 @@ static void GenerateExtensivePathDiagnostic(PathDiagnostic& PD, 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. |