[clang] 9e150ad - [NFC][clang] EditedSource::applyRewrites - useless call
via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 23 07:39:45 PDT 2023
Author: Manna, Soumi
Date: 2023-08-23T07:39:20-07:00
New Revision: 9e150adaea7be2d87fb13255671584719a560939
URL: https://github.com/llvm/llvm-project/commit/9e150adaea7be2d87fb13255671584719a560939
DIFF: https://github.com/llvm/llvm-project/commit/9e150adaea7be2d87fb13255671584719a560939.diff
LOG: [NFC][clang] EditedSource::applyRewrites - useless call
Reviewed By: aaron.ballman
Differential Revision: https://reviews.llvm.org/D158227
Added:
Modified:
clang/lib/Edit/EditedSource.cpp
Removed:
################################################################################
diff --git a/clang/lib/Edit/EditedSource.cpp b/clang/lib/Edit/EditedSource.cpp
index a3386b2489b07c..5e77b0141e8a0e 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.getWithOffset(act.RemoveLen);
+ CurEnd = CurEnd.getWithOffset(act.RemoveLen);
continue;
}
More information about the cfe-commits
mailing list