summaryrefslogtreecommitdiff
path: root/clang/lib/Edit
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-06 01:13:17 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-04-06 01:13:17 +0000
commit501d90bf9f5dad93c790e103e49c5011ed702cd4 (patch)
tree697fc5f193b78623709b0eabd1b47f9d11670019 /clang/lib/Edit
parent5b22f9fe18d6790bfd883d02b72ae2a3ab9ca545 (diff)
downloadllvm-501d90bf9f5dad93c790e103e49c5011ed702cd4.tar.gz
[objcmt] Fix a mishandled conversion to objc directory literal.
rdar://13181413 llvm-svn: 178942
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;
}