Internals: Make AstArg into an AstNode, not Expr (#7122)

This commit is contained in:
Geza Lore
2026-02-22 14:40:51 +00:00
committed by GitHub
parent 443678d8c4
commit 579acced99
4 changed files with 26 additions and 25 deletions
+6
View File
@@ -699,6 +699,12 @@ class RandomizeMarkVisitor final : public VNVisitor {
|| (nodep->op3p() && nodep->op3p()->user1())
|| (nodep->op4p() && nodep->op4p()->user1()));
}
void visit(AstArg* nodep) override {
iterateChildrenConst(nodep);
if (!m_constraintExprGenp && !m_inStdWith) return;
nodep->user1(nodep->exprp() && nodep->exprp()->user1());
}
void visit(AstNode* nodep) override { iterateChildrenConst(nodep); }
public: