mirror of
https://github.com/intel/llvm.git
synced 2026-01-31 16:29:50 +08:00
[analyzer] 'Looping back to the head of the loop' diagnostics are prunable.
llvm-svn: 152083
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user