[SourceKit] Fix issue where the offset of diagnostic fixits is not updated after an edit request.

rdar://23919223
This commit is contained in:
Argyrios Kyrtzidis
2016-02-19 19:07:57 -08:00
parent 7fdada8ee5
commit 10dfe5ab5a
6 changed files with 70 additions and 1 deletions

View File

@@ -658,7 +658,7 @@ adjustDiagnosticFixits(SmallVectorImpl<DiagnosticEntryInfo::Fixit> &Fixits,
// If it intersects with the remove range, ignore the whole diagnostic.
if (!(FixitEnd < ByteOffset || FixitBegin > RemoveEnd))
return true; // Ignore.
if (FixitBegin > FixitEnd)
if (FixitBegin > RemoveEnd)
Fixit.Offset += Delta;
}
return false;