commit | 2dd17abf11ae64339fa6bfaa57d76e13a5fbe5b8 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Tue Mar 06 01:00:36 2012 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Tue Mar 06 01:00:36 2012 +0000 |
tree | 62a6f24e3110ddacf8780f0c543381daa17b6920 | |
parent | 792777c9028e5fc583a83fb3620c2f9e4f7ed1f9 [diff] |
[analyzer] 'Looping back to the head of the loop' diagnostics are prunable. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152083 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 2b55433..73e00e4 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp
@@ -1279,6 +1279,7 @@ PathDiagnosticEventPiece *p = new PathDiagnosticEventPiece(L, "Looping back to the head of the loop"); + p->setPrunable(true); EB.addEdge(p->getLocation(), true); PD.getActivePath().push_front(p);