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 | ecc271fefd51d825df81d78549b60037f67f0224 (patch) | |
tree | 649ab3f276ae4c01ae3048b09fdc0df3d6515137 /lib/Edit/EditedSource.cpp | |
parent | 29a11f45849aa87959e780abb0014a1876e0b39e (diff) |
[objcmt] Fix a mishandled conversion to objc directory literal.
rdar://13181413
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Edit/EditedSource.cpp')
-rw-r--r-- | lib/Edit/EditedSource.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Edit/EditedSource.cpp b/lib/Edit/EditedSource.cpp index dd99ca9280..34b5e62333 100644 --- a/lib/Edit/EditedSource.cpp +++ b/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; } |