This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Report an error instead of asserting
ClosedPublic

Authored by foad on Apr 16 2020, 1:56 AM.

Details

Summary

This gives a nice error if you accidentally try to use an empty list for
the RegTypes of a RegisterClass.

Diff Detail

Event Timeline

foad created this revision.Apr 16 2020, 1:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 16 2020, 1:57 AM
This revision is now accepted and ready to land.Jul 16 2020, 2:04 PM
arsenm added a subscriber: arsenm.Jul 16 2020, 2:05 PM

I think you should be able to define regclasses without types, but this is an improvement

This revision was automatically updated to reflect the committed changes.