Fix crash streaming an unpacked array of unpacked structs (#7917)

This commit is contained in:
Nick Brereton
2026-07-11 20:31:01 -07:00
committed by GitHub
parent 7ca78a75e7
commit dde8de0a0d
3 changed files with 80 additions and 3 deletions
+2 -3
View File
@@ -2780,9 +2780,8 @@ class ConstVisitor final : public VNVisitor {
streamp->dtypeSetLogicUnsized(packedp->width(), packedp->widthMin(),
VSigning::UNSIGNED);
srcp = packedp;
}
if ((VN_IS(srcDTypep, QueueDType) || VN_IS(srcDTypep, DynArrayDType)
|| VN_IS(srcDTypep, UnpackArrayDType))) {
} else if ((VN_IS(srcDTypep, QueueDType) || VN_IS(srcDTypep, DynArrayDType)
|| VN_IS(srcDTypep, UnpackArrayDType))) {
if (VN_IS(dstDTypep, QueueDType) || VN_IS(dstDTypep, DynArrayDType)) {
int blockSize = 1;
if (const AstConst* const constp = VN_CAST(streamp->rhsp(), Const)) {