Remove unnecessary condition

Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
Ryszard Rozak 2026-03-03 14:06:11 +01:00
parent 264e55f17e
commit fc87aae963
1 changed files with 2 additions and 3 deletions

View File

@ -357,11 +357,10 @@ private:
if (VN_IS(structp, StructDType)) {
enStructp = new AstStructDType{structp->fileline(),
packed ? VSigning::SIGNED : VSigning::NOSIGN};
} else if (VN_IS(structp, UnionDType) && structp->packed()) {
} else if (VN_IS(structp, UnionDType) && packed) {
const AstUnionDType* const unionp = VN_AS(structp, UnionDType);
enStructp = new AstUnionDType{unionp->fileline(), unionp->isSoft(),
unionp->isTagged(),
packed ? VSigning::SIGNED : VSigning::NOSIGN};
unionp->isTagged(), VSigning::SIGNED};
} else {
varp->v3fatalSrc("Unsupported: Force of variable of unhandled data type");
return dtypep;