This is an archive of the discontinued LLVM Phabricator instance.

[flang] Use CFI_TYPE_LAST instead of CFI_type_struct
ClosedPublic

Authored by rovka on Apr 30 2021, 12:21 PM.

Details

Summary

It looks like CFI_type_struct was once used as the last valid CFI_type
value, but in the meantime CFI_type_char16_t and CFI_type_char32_t were
added, making that assumption no longer true. Luckily, in the meantime
we also got a define for CFI_TYPE_LAST, which we can now use to allow
CFI_establish and CFI_allocate to work with descriptors of
CFI_type_char16_t, CFI_type_char32_t and any other future types.

Diff Detail

Event Timeline

rovka created this revision.Apr 30 2021, 12:21 PM
rovka requested review of this revision.Apr 30 2021, 12:21 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 30 2021, 12:21 PM
klausler accepted this revision.Apr 30 2021, 3:39 PM
This revision is now accepted and ready to land.Apr 30 2021, 3:39 PM
This revision was automatically updated to reflect the committed changes.