Fix queue element access (#5551)

This commit is contained in:
Ryszard Rozak
2024-10-24 09:40:54 -04:00
committed by GitHub
parent 4e5c7f4568
commit 4cd69f9feb
9 changed files with 126 additions and 26 deletions
+1
View File
@@ -311,6 +311,7 @@ class LinkLValueVisitor final : public VNVisitor {
}
}
void visit(AstNodePreSel* nodep) override {
if (AstSelBit* const selbitp = VN_CAST(nodep, SelBit)) selbitp->access(m_setRefLvalue);
VL_RESTORER(m_setRefLvalue);
{ // Only set lvalues on the from
iterateAndNextNull(nodep->fromp());