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
1 changed files with 1 additions and 1 deletions

View File

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