aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-05-07 07:30:00 +0000
committerTed Kremenek <kremenek@apple.com>2013-05-07 07:30:00 +0000
commit868b55336e66a16df6ced00133a5fc82aef24f93 (patch)
tree7be6ec96d9d75291b1566a70c3a25217fde33291
parent8b5b3607818ed57cc8a3966dd24f513046a5a821 (diff)
downloadllvm-868b55336e66a16df6ced00133a5fc82aef24f93.zip
llvm-868b55336e66a16df6ced00133a5fc82aef24f93.tar.gz
llvm-868b55336e66a16df6ced00133a5fc82aef24f93.tar.bz2
[analyzer; alternate arrows] use the terminator condition as the location for 'entering loop body'
llvm-svn: 181291
-rw-r--r--clang/lib/StaticAnalyzer/Core/BugReporter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
index 2120101..b438a0f 100644
--- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/clang/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;