[PATCH] D158227: [clang] EditedSource::applyRewrites - useless call
Soumi Manna via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 17 15:45:03 PDT 2023
Manna created this revision.
Manna added reviewers: RKSimon, aaron.ballman, tahonermann.
Herald added a project: All.
Manna requested review of this revision.
Herald added a project: clang.
Fixes https://github.com/llvm/llvm-project/issues/53426
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D158227
Files:
clang/lib/Edit/EditedSource.cpp
Index: clang/lib/Edit/EditedSource.cpp
===================================================================
--- clang/lib/Edit/EditedSource.cpp
+++ 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;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158227.551304.patch
Type: text/x-patch
Size: 408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230817/562df51a/attachment.bin>
More information about the cfe-commits
mailing list