Removed redundant local teml

Signed-off-by: Matthew Ballance <matt.ballance@gmail.com>
This commit is contained in:
Matthew Ballance 2026-03-19 14:12:20 +00:00
parent a6acde41a8
commit 9e70f0a2ae
1 changed files with 3 additions and 4 deletions

View File

@ -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);
}
}