3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-11-22 13:41:27 +00:00

Remove explicit empty-string check when looking up IdStrings

This commit is contained in:
Robert O'Callahan 2025-10-16 02:13:33 +00:00 committed by Emil J. Tywoniak
parent 20639906e3
commit e84bc3c6c5
2 changed files with 2 additions and 4 deletions

View file

@ -237,9 +237,6 @@ struct RTLIL::IdString
ensure_prepopulated();
if (p.empty())
return 0;
log_assert(p[0] == '$' || p[0] == '\\');
for (char ch : p)
if ((unsigned)ch <= (unsigned)' ')