Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Wow, nice find!
I'd argue the bug is probably rather in TokenBuffer::expandedTokens(SourceRange) that produced this span. The idea that it might *rarely* include the EOF token seems like a magnet for bugs like these.
(Of course it's a special case of a more general "recovery location points at an unrelated token" problem)...
Even if we want to fix it in TokenBuffer, doing it right before the release cut might be risky. So:
- fix it here
- or fix it in TokenBuffer
- or fix it here and then change after the branch cut
I'm happy with any of these options, up to you.