Don't accept unpacked unions

Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
Ryszard Rozak 2026-02-24 12:51:44 +01:00
parent dbb57431dc
commit 7681e58d51
1 changed files with 1 additions and 1 deletions

View File

@ -265,7 +265,7 @@ private:
if (const AstUnpackArrayDType* const udtp = VN_CAST(dtp, UnpackArrayDType)) {
const size_t elemsInSubDType = checkIfDTypeSupportedRecurse(udtp->subDTypep(), varp);
return udtp->elementsConst() * elemsInSubDType;
} else if (const AstNodeUOrStructDType* const sdtp = VN_CAST(dtp, NodeUOrStructDType)) {
} else if (const AstStructDType* const sdtp = VN_CAST(dtp, StructDType)) {
size_t elemCount = 0;
for (const AstMemberDType* mdtp = sdtp->membersp(); mdtp;
mdtp = VN_AS(mdtp->nextp(), MemberDType)) {