Fix stream concatenation in init array patterns (#7890 repair) (#7928)

This commit is contained in:
Jeffrey Song
2026-07-13 20:29:19 -04:00
committed by GitHub
parent 4262aea87c
commit e24efae5a0
2 changed files with 13 additions and 1 deletions
+2 -1
View File
@@ -3453,7 +3453,8 @@ class WidthVisitor final : public VNVisitor {
}
const AstNodeDType* const arrayp = nodep->dtypep()->skipRefp();
if (VN_IS(arrayp, NodeArrayDType) || VN_IS(arrayp, AssocArrayDType)) {
userIterateChildren(nodep, WidthVP{arrayp->subDTypep(), BOTH}.p());
userIterateChildren(nodep,
WidthVP{arrayp->subDTypep(), BOTH, STREAM_USE_ASSIGN}.p());
} else {
UINFO(1, "on " << nodep);
UINFO(1, "dtype object " << arrayp);