This is an archive of the discontinued LLVM Phabricator instance.

[clang][RecoveryExpr] Fix a crash where a dependent type crahes on c-only code path.
ClosedPublic

Authored by hokein on May 19 2023, 2:41 AM.

Details

Summary

A depenent type is possible in C-only path, add a proper handling when
checking the enum constant.

Fixes https://github.com/llvm/llvm-project/issues/62446

Diff Detail

Event Timeline

hokein created this revision.May 19 2023, 2:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2023, 2:41 AM
hokein requested review of this revision.May 19 2023, 2:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 19 2023, 2:41 AM
aaron.ballman accepted this revision.May 19 2023, 8:29 AM
aaron.ballman added a subscriber: aaron.ballman.

LGTM, but this should have a release note for the fix. Thanks!

This revision is now accepted and ready to land.May 19 2023, 8:29 AM
shafik accepted this revision.May 19 2023, 9:41 AM
shafik added a subscriber: shafik.

Thank you for the fix, LGTM

hokein updated this revision to Diff 523868.May 19 2023, 11:10 AM

add release note.

Thanks for the fast review!

This revision was landed with ongoing or failed builds.May 19 2023, 11:25 AM
This revision was automatically updated to reflect the committed changes.