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;
     }
 


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;
     }
 
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to