FIx forcedUpdate calls

Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
Ryszard Rozak 2026-02-11 14:33:12 +01:00
parent 73398ee87a
commit d576a49f8a
1 changed files with 2 additions and 2 deletions

View File

@ -443,7 +443,7 @@ class ForceConvertVisitor final : public VNVisitor {
refp->access(VAccess::READ);
ForceState::markNonReplaceable(refp);
} else {
refp->replaceWith(m_state.getForceComponents(vscp).forcedUpdate(vscp, {}));
refp->replaceWith(m_state.getForceComponents(vscp).forcedUpdate(vscp));
VL_DO_DANGLING(refp->deleteTree(), refp);
}
});
@ -550,7 +550,7 @@ class ForceReplaceVisitor final : public VNVisitor {
AstNodeExpr* lhsp;
AstNodeExpr* rhsp;
if (nodep->dtypep()->skipRefp()->isIntegralOrPacked()) {
rhsp = fcp->forcedUpdate(nodep->varScopep(), {});
rhsp = fcp->forcedUpdate(nodep->varScopep());
lhsp = lhsRefp;
} else {
AstNodeExpr* wholeExprp = nodep;