summaryrefslogtreecommitdiff
path: root/clang/lib/Edit
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Edit')
-rw-r--r--clang/lib/Edit/EditedSource.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Edit/EditedSource.cpp b/clang/lib/Edit/EditedSource.cpp
index dd99ca928019..34b5e62333ad 100644
--- a/clang/lib/Edit/EditedSource.cpp
+++ b/clang/lib/Edit/EditedSource.cpp
@@ -188,6 +188,8 @@ void EditedSource::commitRemove(SourceLocation OrigLoc,
unsigned diff = EndOffs.getOffset() - TopEnd.getOffset();
TopEnd = EndOffs;
TopFA->RemoveLen += diff;
+ if (B == BeginOffs)
+ TopFA->Text = StringRef();
++I;
}