This is an archive of the discontinued LLVM Phabricator instance.

[Lexer] Fix bug in `makeFileCharRange` called on split tokens.
ClosedPublic

Authored by ymandel on Jul 2 2021, 11:55 AM.

Details

Summary

When the end loc of the specified range is a split token, makeFileCharRange
does not process it correctly. This patch adds proper support for split tokens.

Diff Detail

Event Timeline

ymandel requested review of this revision.Jul 2 2021, 11:55 AM
ymandel created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJul 2 2021, 11:55 AM

Gentle ping...

sammccall accepted this revision.Jul 13 2021, 6:09 AM

Sorry about this. I stared at this a few times and it *seems* right to me, and fixes the bug...

This revision is now accepted and ready to land.Jul 13 2021, 6:09 AM