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:
+1
-1
@@ -80,7 +80,7 @@ private:
|
||||
virtual void visit(AstVarRef* nodep) override {
|
||||
if (!m_mergeable) return;
|
||||
// Clear if it's an LValue referencing a marked variable
|
||||
if (nodep->access().isWrite() && nodep->varp()->user1()) {
|
||||
if (nodep->access().isWriteOrRW() && nodep->varp()->user1()) {
|
||||
clearMergeable(nodep, "might modify condition");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user