From d0f5faf319550b0504b2f8f822d06a6b0279285b Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 7 May 2013 07:30:00 +0000 Subject: [PATCH] [analyzer; alternate arrows] use the terminator condition as the location for 'entering loop body' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181291 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/StaticAnalyzer/Core/BugReporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/StaticAnalyzer/Core/BugReporter.cpp b/lib/StaticAnalyzer/Core/BugReporter.cpp index 2120101ea0..b438a0ff2d 100644 --- a/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -1770,7 +1770,7 @@ GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD, } if (str) { - PathDiagnosticLocation L(Term, SM, PDB.LC); + PathDiagnosticLocation L(TermCond, SM, PDB.LC); PathDiagnosticEventPiece *PE = new PathDiagnosticEventPiece(L, str); EventCategory[PE] = EC; -- 2.40.0