Handle unions
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
625a33c155
commit
7fd1e83235
|
|
@ -355,6 +355,11 @@ private:
|
|||
enStructp = new AstStructDType{structp->fileline(), structp->packed()
|
||||
? VSigning::SIGNED
|
||||
: VSigning::NOSIGN};
|
||||
} else if (VN_IS(structp, UnionDType) && structp->packed()) {
|
||||
const AstUnionDType* const unionp = VN_AS(structp, UnionDType);
|
||||
enStructp = new AstUnionDType{
|
||||
unionp->fileline(), unionp->isSoft(), unionp->isTagged(),
|
||||
unionp->packed() ? VSigning::SIGNED : VSigning::NOSIGN};
|
||||
} else {
|
||||
varp->v3fatalSrc("Unsupported: Force of variable of unhandled data type");
|
||||
return dtypep;
|
||||
|
|
|
|||
Loading…
Reference in New Issue