From 2dd17abf11ae64339fa6bfaa57d76e13a5fbe5b8 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 6 Mar 2012 01:00:36 +0000 Subject: [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 --- lib/StaticAnalyzer/Core/BugReporter.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/StaticAnalyzer/Core/BugReporter.cpp') diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 2b554332ae..73e00e4416 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1279,6 +1279,7 @@ static void GenerateExtensivePathDiagnostic(PathDiagnostic& PD, 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); -- cgit v1.2.3-18-g5258