[PATCH] D158804: [Clang] Fix crash in Parser::ParseDirectDeclarator by adding check that token is not an annotation token

Nathan Ridge via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 6 01:20:28 PDT 2023


nridge accepted this revision.
nridge added a subscriber: rjmccall.
nridge added a comment.
This revision is now accepted and ready to land.

I'm not well versed in the parser code, but the fix clearly avoids the assertion in `getIdentifierInfo()`, and both @aaron.ballman and @rjmccall indicated in the issue discussion that this fix is appropriate, so I will take the liberty of approving this.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158804/new/

https://reviews.llvm.org/D158804



More information about the cfe-commits mailing list