diff options
author | Ted Kremenek <kremenek@apple.com> | 2013-05-22 19:25:03 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2013-05-22 19:25:03 +0000 |
commit | 561060b7f5805918bdc57daf79f34e57d80f71ae (patch) | |
tree | 1fd6e1e451da3d1ae1052b2fcc9300640e6f99d0 /clang/lib/StaticAnalyzer/Core/BugReporter.cpp | |
parent | 0962e56f00f212483f0f4edb0113f279a967e7e4 (diff) | |
download | bcm5719-llvm-561060b7f5805918bdc57daf79f34e57d80f71ae.tar.gz bcm5719-llvm-561060b7f5805918bdc57daf79f34e57d80f71ae.zip |
Simplifiy code using return value of erase().
llvm-svn: 182506
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/BugReporter.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/BugReporter.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp index f08e048bb80..28326eee7d0 100644 --- a/clang/lib/StaticAnalyzer/Core/BugReporter.cpp +++ b/clang/lib/StaticAnalyzer/Core/BugReporter.cpp @@ -2017,10 +2017,8 @@ static void removePunyEdges(PathPieces &path, continue; if (abs(startCol - endCol) <= 2) { - PathPieces::iterator PieceToErase = I; - ++I; + I = path.erase(I); erased = true; - path.erase(PieceToErase); continue; } } |