diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-12-28 19:03:18 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-12-28 19:03:18 +0100 |
commit | f3a97b75c78bd6f3670445129405213c0a015481 (patch) | |
tree | 9c39fdf8f551c153d34a088480b3bdbc97935d99 /kernel/rtlil.h | |
parent | 89723a45cf86a508d052dd54aa058719e314cc3c (diff) | |
download | yosys-f3a97b75c78bd6f3670445129405213c0a015481.tar.gz yosys-f3a97b75c78bd6f3670445129405213c0a015481.tar.bz2 yosys-f3a97b75c78bd6f3670445129405213c0a015481.zip |
Fixed performance bug in object hashing
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r-- | kernel/rtlil.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h index 8cf707999..f759a014f 100644 --- a/kernel/rtlil.h +++ b/kernel/rtlil.h @@ -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++; } |