HomePhabricator

[TableGen] Report an error instead of asserting

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

Description

[TableGen] Report an error instead of asserting

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

Differential Revision: https://reviews.llvm.org/D78285