DFG: Support packed structure and union types

This commit is contained in:
Geza Lore 2022-09-26 18:31:12 +01:00
parent d8b5359fcb
commit 9c1cc5465d

View File

@ -228,6 +228,9 @@ public:
if (const AstPackArrayDType* const typep = VN_CAST(dtypep, PackArrayDType)) {
return isSupportedDType(typep->subDTypep());
}
if (const AstNodeUOrStructDType* const typep = VN_CAST(dtypep, NodeUOrStructDType)) {
return typep->packed();
}
return false;
}