From 37cfb94fcd25405e3bd6de379c9fa174de4d32b6 Mon Sep 17 00:00:00 2001 From: Aleksander Kiryk Date: Mon, 27 Nov 2023 14:58:53 +0100 Subject: [PATCH] Remove unused var declaration --- src/V3Randomize.cpp | 1 - 1 file changed, 1 deletion(-) 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},