Fix handling of force assignments to real dtype vars
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
parent
0efe6c735e
commit
8ee53a8e80
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue