diff options
author | Rahul Joshi <rjoshi@nvidia.com> | 2024-10-04 05:45:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-04 05:45:45 -0700 |
commit | 04540fac5bfa6c1630e84ccdc7f817bd8bc1a986 (patch) | |
tree | 565387bf2fd4b5f74f4dbd0d0faf6e7c9f9e3f09 /llvm/utils/UpdateTestChecks/common.py | |
parent | 1811e872042a32e28ec0956a8422780b176ef3a4 (diff) | |
download | llvm-04540fac5bfa6c1630e84ccdc7f817bd8bc1a986.zip llvm-04540fac5bfa6c1630e84ccdc7f817bd8bc1a986.tar.gz llvm-04540fac5bfa6c1630e84ccdc7f817bd8bc1a986.tar.bz2 |
[TableGen] Print record location when record asserts fail (#111029)
When record assertions fail, print an error message with the record's
location, so it's easier to see where the record that caused the assert
to fail was instantiated. This is useful when the assert condition in a
class depends on a template parameter, so we need to know the context of
the definition to determine why the assert failed.
Also enhanced the assert.td test to check for these context messages,
and also add checks for some assert failures that were missing in the
test.
Diffstat (limited to 'llvm/utils/UpdateTestChecks/common.py')
0 files changed, 0 insertions, 0 deletions