From fc87aae96347ac441267e6b82e027f2e258f4f6a Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Tue, 3 Mar 2026 14:06:11 +0100 Subject: [PATCH] Remove unnecessary condition Signed-off-by: Ryszard Rozak --- src/V3Force.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/V3Force.cpp b/src/V3Force.cpp index a57a0d626..4772d3d14 100644 --- a/src/V3Force.cpp +++ b/src/V3Force.cpp @@ -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;