summaryrefslogtreecommitdiff
path: root/kernel/rtlil.h
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-12-28 19:03:18 +0100
committerClifford Wolf <clifford@clifford.at>2014-12-28 19:03:18 +0100
commitf3a97b75c78bd6f3670445129405213c0a015481 (patch)
tree9c39fdf8f551c153d34a088480b3bdbc97935d99 /kernel/rtlil.h
parent89723a45cf86a508d052dd54aa058719e314cc3c (diff)
Fixed performance bug in object hashing
Diffstat (limited to 'kernel/rtlil.h')
-rw-r--r--kernel/rtlil.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rtlil.h b/kernel/rtlil.h
index 8cf70799..f759a014 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++;
}