diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-06 01:13:17 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-04-06 01:13:17 +0000 |
commit | 501d90bf9f5dad93c790e103e49c5011ed702cd4 (patch) | |
tree | 697fc5f193b78623709b0eabd1b47f9d11670019 /clang/lib/Edit | |
parent | 5b22f9fe18d6790bfd883d02b72ae2a3ab9ca545 (diff) | |
download | llvm-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.cpp | 2 |
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; } |