This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] FieldInit: improve assertion message
ClosedPublic

Authored by lebedev.ri on Aug 6 2019, 1:40 AM.

Details

Summary

When fiddling with sched profiles, especially creating new ones, it's amazingly easy
to end up with malformed .td that crashes tablegen, without explanation of the bug.
This changes the most common assertion i have encountered to dump enough information
to be able to fix the .td

Split of from D63628

Diff Detail

Repository
rL LLVM

Event Timeline

lebedev.ri created this revision.Aug 6 2019, 1:40 AM

To be noted this is essentially NFC, this only improves the error reporting, it does not change any error detection logic.

This revision is now accepted and ready to land.Aug 6 2019, 9:40 AM
This revision was automatically updated to reflect the committed changes.