]> granicus.if.org Git - clang/commitdiff
[analyzer] New edges: include an edge to the end-of-path location.
authorJordan Rose <jordan_rose@apple.com>
Sat, 18 May 2013 02:27:13 +0000 (02:27 +0000)
committerJordan Rose <jordan_rose@apple.com>
Sat, 18 May 2013 02:27:13 +0000 (02:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182188 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/BugReporter.cpp

index d4277fc218dd833ac706a81323e67d203e570858..fddb7e72168257d21361d7c8fadce6e0bdcc788a 100644 (file)
@@ -1581,6 +1581,8 @@ GenerateAlternateExtensivePathDiagnostic(PathDiagnostic& PD,
   // Record the last location for a given visited stack frame.
   llvm::DenseMap<const StackFrameContext *, PathDiagnosticLocation>
     PrevLocMap;
+  PrevLocMap[N->getLocationContext()->getCurrentStackFrame()] =
+    PD.getLocation();
 
   const ExplodedNode *NextNode = N->getFirstPred();
   while (NextNode) {