From 0efe6c735e245ebd087ef6975c336d7641c11c63 Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Mon, 19 Jan 2026 16:12:29 +0100 Subject: [PATCH] TMP: Return nullptr in unhandled cases Signed-off-by: Ryszard Rozak --- src/V3Force.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/V3Force.cpp b/src/V3Force.cpp index 2ea7f3624..7cd8887ad 100644 --- a/src/V3Force.cpp +++ b/src/V3Force.cpp @@ -188,7 +188,7 @@ public: return new AstAssign{flp, lhsp, forcedUpdate(vscp, lhsp, lhsVarRefp)}; } else if (const AstStructDType* const structDtypep = VN_CAST(lhsDtypep, StructDType)) { - + return nullptr; } else if (const AstUnpackArrayDType* const arrayDtypep = VN_CAST(lhsDtypep, UnpackArrayDType)) { AstVar* const loopVarp = new AstVar{flp, VVarType::MODULETEMP, @@ -218,6 +218,8 @@ public: new AstAdd{flp, readRefp->cloneTree(false), new AstConst{flp, 1}}}; currWhilep->addStmtsp(currIncrp); return currInitp; + } else { + return nullptr; } } static AstNodeExpr* applySelects(AstNodeExpr* exprp,