Simplifiy code using return value of erase().

llvm-svn: 182506
This commit is contained in:
Ted Kremenek 2013-05-22 19:25:03 +00:00
parent 0962e56f00
commit 561060b7f5
1 changed files with 1 additions and 3 deletions

View File

@ -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;
}
}