Fix type assignments for arrays of parameter types (#6955)

This commit is contained in:
Todd Strader
2026-01-26 15:50:52 -05:00
committed by GitHub
parent 1b9f38f78f
commit 67df517bec
6 changed files with 100 additions and 2 deletions
+6 -2
View File
@@ -4049,8 +4049,12 @@ class LinkDotResolveVisitor final : public VNVisitor {
[this](AstVar* v, AstRefDType* r) { return promoteVarToParamType(v, r); },
[this]() { return indent(); });
replaceWithCheckBreak(nodep, refp);
VL_DO_DANGLING(pushDeletep(nodep), nodep);
if (VN_IS(nodep->backp(), SelExtract)) {
m_packedArrayDtp = refp;
} else {
replaceWithCheckBreak(nodep, refp);
VL_DO_DANGLING(pushDeletep(nodep), nodep);
}
}
}
if (!ok) {