From 44049787656bcd0d6bbee7c5bf5d1f5dd164b8d5 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Wed, 5 Nov 2025 14:59:25 +0000 Subject: [PATCH] Fix command line statistics with --stats (#6645) (#6646) Fixes #6645 --- src/V3StatsReport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3StatsReport.cpp b/src/V3StatsReport.cpp index bedbf14b5..5d74febe6 100644 --- a/src/V3StatsReport.cpp +++ b/src/V3StatsReport.cpp @@ -50,8 +50,8 @@ class StatsReport final { V3Statistic* lastp = nullptr; for (const auto& itr : byName) { V3Statistic* repp = itr.second; - if (lastp && lastp->sumit() && lastp->printit() && lastp->name() == repp->name() - && lastp->stage() == repp->stage()) { + if (lastp && lastp->sumit() && lastp->printit() && repp->printit() + && lastp->name() == repp->name() && lastp->stage() == repp->stage()) { lastp->combineWith(repp); } else { lastp = repp;