Skip to content

Commit

Permalink
Set m_inToggleOff as it is originally set in functions
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Dec 30, 2024
1 parent 58fc3a7 commit 12702ca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/V3Coverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 12702ca

Please sign in to comment.