Fix handling of force assignments to real dtype vars

Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
Ryszard Rozak 2026-01-19 16:31:35 +01:00
parent 0efe6c735e
commit 8ee53a8e80
1 changed files with 1 additions and 1 deletions

View File

@ -184,7 +184,7 @@ public:
static int cnt = 0;
FileLine* const flp = lhsp->fileline();
const AstNodeDType* const lhsDtypep = lhsp->dtypep()->skipRefp();
if (lhsDtypep->isIntegralOrPacked()) {
if (lhsDtypep->isIntegralOrPacked() || VN_IS(lhsDtypep, BasicDType)) {
return new AstAssign{flp, lhsp, forcedUpdate(vscp, lhsp, lhsVarRefp)};
} else if (const AstStructDType* const structDtypep
= VN_CAST(lhsDtypep, StructDType)) {