summaryrefslogtreecommitdiff
path: root/frontends/ast/ast.cc
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2014-12-29 03:11:50 +0100
committerClifford Wolf <clifford@clifford.at>2014-12-29 03:11:50 +0100
commit90bc71dd906935def78048e13e7c9f214af0486c (patch)
tree3f586998f5148e246f8fe10e8422ff322514c4b6 /frontends/ast/ast.cc
parent397ae5b697e9923bb9d35df425370efd9357b127 (diff)
dict/pool changes in ast
Diffstat (limited to 'frontends/ast/ast.cc')
-rw-r--r--frontends/ast/ast.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/ast/ast.cc b/frontends/ast/ast.cc
index 8ef60079..fbb72692 100644
--- a/frontends/ast/ast.cc
+++ b/frontends/ast/ast.cc
@@ -180,6 +180,10 @@ bool AstNode::get_bool_attribute(RTLIL::IdString id)
// (the optional child arguments make it easier to create AST trees)
AstNode::AstNode(AstNodeType type, AstNode *child1, AstNode *child2)
{
+ static unsigned int hashidx_count = 123456789;
+ hashidx_count = mkhash_xorshift(hashidx_count);
+ hashidx_ = hashidx_count;
+
this->type = type;
filename = current_filename;
linenum = get_line_num();