From 9e70f0a2ae49e9dc9c0e6545dd71283f1232e9bd Mon Sep 17 00:00:00 2001 From: Matthew Ballance Date: Thu, 19 Mar 2026 14:12:20 +0000 Subject: [PATCH] Removed redundant local teml Signed-off-by: Matthew Ballance --- src/V3Width.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 84b4c8aea..4f009d90a 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -1727,14 +1727,13 @@ class WidthVisitor final : public VNVisitor { } void visit(AstCgOptionAssign* nodep) override { // Extract covergroup option values and store in AstClass before deleting - AstClass* const cgClassp = m_cgClassp; - if (cgClassp) { + if (m_cgClassp) { // Process supported options if (nodep->name() == "auto_bin_max" && !nodep->typeOption()) { // Extract constant value if (AstConst* constp = VN_CAST(nodep->valuep(), Const)) { - cgClassp->cgAutoBinMax(constp->toSInt()); - UINFO(6, " Covergroup " << cgClassp->name() << " option.auto_bin_max = " + m_cgClassp->cgAutoBinMax(constp->toSInt()); + UINFO(6, " Covergroup " << m_cgClassp->name() << " option.auto_bin_max = " << constp->toSInt() << endl); } }