mirror of https://github.com/YosysHQ/yosys.git
Don't recompute hash using moved-out-of value
This commit is contained in:
parent
37875fdedf
commit
a27b1a83ae
|
|
@ -1021,7 +1021,7 @@ protected:
|
|||
if (hashtable.empty()) {
|
||||
entries.emplace_back(std::forward<K>(rvalue), -1);
|
||||
do_rehash();
|
||||
hash = do_hash(rvalue);
|
||||
hash = do_hash(entries.back().udata);
|
||||
} else {
|
||||
entries.emplace_back(std::forward<K>(rvalue), hashtable[hash]);
|
||||
hashtable[hash] = entries.size() - 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue