3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-10-03 14:33:57 +00:00

Merge pull request #5403 from rocallahan/idstring-empty

Optimize `IdString::empty()`
This commit is contained in:
Emil J 2025-10-01 11:23:59 +02:00 committed by GitHub
commit 2872847ea5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -411,7 +411,7 @@ struct RTLIL::IdString
}
bool empty() const {
return c_str()[0] == 0;
return index_ == 0;
}
void clear() {