This is an archive of the discontinued LLVM Phabricator instance.

[AST][RecoveryExpr] Fix a crash on a field decl with invalid type.
ClosedPublic

Authored by hokein on Jun 16 2020, 12:28 AM.

Details

Summary

The field decl (in the testcase) was still valid, which results in a
valid RecordDecl, it led to crash when performing struct layout,
and computing struct size etc.

Diff Detail

Event Timeline

hokein created this revision.Jun 16 2020, 12:28 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2020, 12:28 AM
sammccall accepted this revision.Jun 16 2020, 12:55 AM
This revision is now accepted and ready to land.Jun 16 2020, 12:55 AM
This revision was automatically updated to reflect the committed changes.