diff --git a/src/V3Randomize.cpp b/src/V3Randomize.cpp index 68880536f9..e780677d64 100644 --- a/src/V3Randomize.cpp +++ b/src/V3Randomize.cpp @@ -351,7 +351,6 @@ class RandomizeVisitor final : public VNVisitor { assignp}; funcp->addStmtsp(assignIfNotNullp); } else if (const auto* const dynp = VN_CAST(dtypep, DynArrayDType)) { - AstVarRef* const refp = new AstVarRef{fl, memberVarp, VAccess::WRITE}; AstNodeExpr* callp = newRandValue(fl, memberVarp, memberVarp->findBasicDType(VBasicDTypeKwd::UINT32)); AstAssign* const assignp = new AstAssign{ fl, new AstVarRef{fl, fvarp, VAccess::WRITE},