Thanks for the review!
Unfortunately, it is necessary. A little bit later we have
if (DiffType == EndOfClass && Tag)
where we use DiffType.
By the way, the implementation isn't really correct for EndOfClass and non-TagDecl as Loc remains invalid. But that's a separate issue, I've decided to keep the current change to NFC.