summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2013-05-23 06:41:58 +0000
committerTed Kremenek <kremenek@apple.com>2013-05-23 06:41:58 +0000
commita76dd19507023d10f70b99809d2ce61a1a96d62e (patch)
treed9b18f06d91f303f98e0ab7f3914f60091d7589a
parent39aca620db4e846f5a87e2a1e9f29b64352a06a0 (diff)
downloadbcm5719-llvm-a76dd19507023d10f70b99809d2ce61a1a96d62e.tar.gz
bcm5719-llvm-a76dd19507023d10f70b99809d2ce61a1a96d62e.zip
[analyzer;alternate edges] fix type that was causing the wrong path piece to get removed.
llvm-svn: 182562
-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 952fabd585e..d241c8a16d7 100644
--- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
+++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp
@@ -2037,7 +2037,7 @@ static void removeIdenticalEvents(PathPieces &path) {
return;
PathDiagnosticEventPiece *PieceNextI =
- dyn_cast<PathDiagnosticEventPiece>(*I);
+ dyn_cast<PathDiagnosticEventPiece>(*NextI);
if (!PieceNextI)
continue;
OpenPOWER on IntegriCloud