forked from OSchip/llvm-project
Simplifiy code using return value of erase().
llvm-svn: 182506
This commit is contained in:
parent
0962e56f00
commit
561060b7f5
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue