forked from OSchip/llvm-project
Extensive diagnostics: Do not add a location context for do...while statements.
llvm-svn: 70286
This commit is contained in:
parent
61114bc558
commit
9bea0dc178
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue