3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-06 06:03:23 +00:00

Fixed performance bug in object hashing

This commit is contained in:
Clifford Wolf 2014-12-28 19:03:18 +01:00
parent 89723a45cf
commit f3a97b75c7
2 changed files with 6 additions and 6 deletions

View file

@ -712,7 +712,7 @@ struct RTLIL::Monitor
unsigned int hash() const { return hashidx_; }
Monitor() {
unsigned int hashidx_count = 0;
static unsigned int hashidx_count = 0;
hashidx_ = hashidx_count++;
}