mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Fix queue poping wrong value when otherwise unused (#2512).
This commit is contained in:
+2
-4
@@ -898,10 +898,8 @@ public:
|
||||
: m_basicp{varp->dtypep()->basicp()} {}
|
||||
void append(const PackedVarRefEntry& e, const VAccess& access) {
|
||||
UASSERT(!m_dedupDone, "cannot add after dedup()");
|
||||
if (access.isWrite())
|
||||
m_lhs.push_back(e);
|
||||
else
|
||||
m_rhs.push_back(e);
|
||||
if (access.isWriteOrRW()) m_lhs.push_back(e);
|
||||
if (access.isReadOrRW()) m_rhs.push_back(e);
|
||||
}
|
||||
void dedup() {
|
||||
UASSERT(!m_dedupDone, "dedup() called twice");
|
||||
|
||||
Reference in New Issue
Block a user