]> granicus.if.org Git - clang/commitdiff
[analyzer; alternate arrows] use the terminator condition as the location for 'enteri...
authorTed Kremenek <kremenek@apple.com>
Tue, 7 May 2013 07:30:00 +0000 (07:30 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 7 May 2013 07:30:00 +0000 (07:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181291 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/BugReporter.cpp

index 2120101ea09584e713dee4c29b0e077355e71c8f..b438a0ff2d22f1f836960bd575e905a47ac96b79 100644 (file)
@@ -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;