OSDN Git Service

[TableGen] Report an error instead of asserting
authorJay Foad <jay.foad@amd.com>
Thu, 16 Apr 2020 08:29:28 +0000 (09:29 +0100)
committerJay Foad <jay.foad@amd.com>
Fri, 17 Jul 2020 10:32:46 +0000 (11:32 +0100)
commit1cfb207737cc347baeb55999bd2cbd46fb5d9309
tree0ae6a535000bca5a6c0d39cc1ca0da60fb12a100
parentdf6e185e8f895686510117301e568e5043909b66
[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
llvm/test/TableGen/RegisterClass.td [new file with mode: 0644]
llvm/utils/TableGen/CodeGenRegisters.cpp