Author: Manna, Soumi Date: 2023-08-23T08:32:30-07:00 New Revision: 969df3ba1076cd7d443e420be8d4fc8d62a13e51
URL: https://github.com/llvm/llvm-project/commit/969df3ba1076cd7d443e420be8d4fc8d62a13e51 DIFF: https://github.com/llvm/llvm-project/commit/969df3ba1076cd7d443e420be8d4fc8d62a13e51.diff LOG: Revert "[NFC][clang] EditedSource::applyRewrites - useless call" This reverts commit 9e150adaea7be2d87fb13255671584719a560939. Added: Modified: clang/lib/Edit/EditedSource.cpp Removed: ################################################################################ diff --git a/clang/lib/Edit/EditedSource.cpp b/clang/lib/Edit/EditedSource.cpp index 5e77b0141e8a0e..a3386b2489b07c 100644 --- a/clang/lib/Edit/EditedSource.cpp +++ b/clang/lib/Edit/EditedSource.cpp @@ -430,7 +430,7 @@ void EditedSource::applyRewrites(EditsReceiver &receiver, if (offs == CurEnd) { StrVec += act.Text; CurLen += act.RemoveLen; - CurEnd = CurEnd.getWithOffset(act.RemoveLen); + CurEnd.getWithOffset(act.RemoveLen); continue; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits