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 | 9bea0dc178d273f91452f1c30604205cbfba39bf (patch) | |
tree | b786ad0778a46c0d13438468631fd6412d4eeec5 | |
parent | 61114bc558c90e97b42dd3249b025319588643e6 (diff) | |
download | bcm5719-llvm-9bea0dc178d273f91452f1c30604205cbfba39bf.tar.gz bcm5719-llvm-9bea0dc178d273f91452f1c30604205cbfba39bf.zip |
Extensive diagnostics: Do not add a location context for do...while statements.
llvm-svn: 70286
-rw-r--r-- | clang/lib/Analysis/BugReporter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Analysis/BugReporter.cpp b/clang/lib/Analysis/BugReporter.cpp index 8db4dfa2473..3c814dbb67b 100644 --- a/clang/lib/Analysis/BugReporter.cpp +++ b/clang/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. |