diff --git a/clang/lib/Edit/EditedSource.cpp b/clang/lib/Edit/EditedSource.cpp --- a/clang/lib/Edit/EditedSource.cpp +++ b/clang/lib/Edit/EditedSource.cpp @@ -430,7 +430,7 @@ if (offs == CurEnd) { StrVec += act.Text; CurLen += act.RemoveLen; - CurEnd.getWithOffset(act.RemoveLen); + CurEnd = CurEnd.getWithOffset(act.RemoveLen); continue; }