From 5acebddeb4c4bbb325c1d7591f4f1cae81f098ad Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Mon, 12 Jan 2026 13:44:45 +0100 Subject: [PATCH] Don't throw error on unpacked struct Signed-off-by: Ryszard Rozak --- src/V3Force.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/V3Force.cpp b/src/V3Force.cpp index 9ca6db121..4d9a8ecbc 100644 --- a/src/V3Force.cpp +++ b/src/V3Force.cpp @@ -258,10 +258,6 @@ private: return origDTypep; } else if (const AstNodeUOrStructDType* const sdtp = VN_CAST(origDTypep, NodeUOrStructDType)) { - if (!sdtp->packed()) { - varp->v3warn(E_UNSUPPORTED, - "Unsupported: Force of unpacked struct / union variable"); - } return origDTypep; } else { varp->v3fatalSrc("Unsupported: Force of variable of unhandled data type");