From 12702cab52e6c315a8bdaba455e33c1ce90968e6 Mon Sep 17 00:00:00 2001 From: Ryszard Rozak Date: Mon, 30 Dec 2024 12:37:17 +0100 Subject: [PATCH] Set m_inToggleOff as it is originally set in functions Signed-off-by: Ryszard Rozak --- src/V3Coverage.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/V3Coverage.cpp b/src/V3Coverage.cpp index f189f75c64..74177f0191 100644 --- a/src/V3Coverage.cpp +++ b/src/V3Coverage.cpp @@ -223,6 +223,8 @@ class CoverageVisitor final : public VNVisitor { void visit(AstFunc* nodep) override { VL_RESTORER(m_state); m_state.m_on = false; + VL_RESTORER(m_inToggleOff); + m_inToggleOff = true; iterateChildren(nodep); }