mirror of
https://github.com/YosysHQ/yosys
synced 2025-10-03 22:43:57 +00:00
Merge pull request #5403 from rocallahan/idstring-empty
Optimize `IdString::empty()`
This commit is contained in:
commit
2872847ea5
1 changed files with 1 additions and 1 deletions
|
@ -411,7 +411,7 @@ struct RTLIL::IdString
|
||||||
}
|
}
|
||||||
|
|
||||||
bool empty() const {
|
bool empty() const {
|
||||||
return c_str()[0] == 0;
|
return index_ == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void clear() {
|
void clear() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue