Fix inline constraint on array-indexed randomize target (#7431) (#7434)

Fixes #7431.
This commit is contained in:
Yilou Wang
2026-04-16 11:02:22 -04:00
committed by GitHub
parent 3587ac48a4
commit 72952fd3fb
3 changed files with 33 additions and 5 deletions
+1 -1
View File
@@ -107,7 +107,7 @@ class LinkWithVisitor final : public VNVisitor {
}
void visit(AstMemberSel* nodep) override {
if (m_inRandomizeWith && nodep->fromp()->isSame(m_currentRandomizeSelectp)) {
if (m_inRandomizeWith && nodep->fromp()->sameTree(m_currentRandomizeSelectp)) {
// Replace member selects to the element
// on which the randomize() is called with LambdaArgRef
// This allows V3Randomize to work properly when