This is an archive of the discontinued LLVM Phabricator instance.

[TableGen][VarLenCodeEmitterGen] Improve the error message
ClosedPublic

Authored by 0x59616e on Feb 13 2022, 6:45 PM.

Details

Summary

This gives a approximate error location. Although not very
accurate, it suffices to debug.

Diff Detail

Event Timeline

0x59616e requested review of this revision.Feb 13 2022, 6:45 PM
0x59616e created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 13 2022, 6:45 PM
0x59616e updated this revision to Diff 408313.Feb 13 2022, 6:48 PM

clang-format

0x59616e added a reviewer: RKSimon.
0x59616e updated this revision to Diff 408800.Feb 15 2022, 3:29 AM

clang-format

0x59616e updated this revision to Diff 408832.Feb 15 2022, 5:25 AM

address feedback

0x59616e updated this revision to Diff 408834.Feb 15 2022, 5:27 AM

update diff. I use arc incorrectly.

myhsu added inline comments.Feb 15 2022, 1:07 PM
llvm/utils/TableGen/VarLenCodeEmitterGen.cpp
95

please initialize TheDef with nullptr in default ctor.

143

just want to be safe, maybe we should assert on TheDef here to make sure it's not null.

0x59616e updated this revision to Diff 409100.Feb 15 2022, 4:49 PM

address feedback

0x59616e marked 2 inline comments as done.Feb 15 2022, 4:49 PM
myhsu accepted this revision.Feb 15 2022, 8:30 PM

LGTM cheers

This revision is now accepted and ready to land.Feb 15 2022, 8:30 PM
This revision was landed with ongoing or failed builds.Feb 15 2022, 8:56 PM
This revision was automatically updated to reflect the committed changes.