]> granicus.if.org Git - clang/commitdiff
[analyzer;alternate edges] fix type that was causing the wrong path piece to get...
authorTed Kremenek <kremenek@apple.com>
Thu, 23 May 2013 06:41:58 +0000 (06:41 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 23 May 2013 06:41:58 +0000 (06:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@182562 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/BugReporter.cpp

index 952fabd585e2e12c3a4caa826fd15856df9864b5..d241c8a16d71946257147a75646d6ee9cab24d8e 100644 (file)
@@ -2037,7 +2037,7 @@ static void removeIdenticalEvents(PathPieces &path) {
       return;
 
     PathDiagnosticEventPiece *PieceNextI =
-      dyn_cast<PathDiagnosticEventPiece>(*I);
+      dyn_cast<PathDiagnosticEventPiece>(*NextI);
 
     if (!PieceNextI)
       continue;