Print an error instead of crashing in two places.
If someone has a better error message for the first case, I would be glad to use it.
Differential D81074
[TableGen] Add error messages Flakebi on Jun 3 2020, 3:02 AM. Authored by
Details
Print an error instead of crashing in two places. If someone has a better error message for the first case, I would be glad to use it.
Diff Detail
Unit Tests Event Timeline
Comment Actions Thank you for the fast review!
In the case where I encountered it, the types cannot be determined because the for loop is never executed and it crashed below, trying to access null types. |
This one makes sense to me. The return statement ought to be updated to use Entry though:
return std::string(Entry->first)