Skip to content

Commit

Permalink
Remove if for procedures
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
  • Loading branch information
RRozak committed Jan 31, 2025
1 parent 90c3274 commit c848fe7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/V3Coverage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,7 @@ class CoverageVisitor final : public VNVisitor {
return;
}

if (m_inProcedure) {
} else if (VN_IS(m_modp, Module)) {
if (!m_inProcedure && VN_IS(m_modp, Module)) {
AstIf* const fakeIfp = new AstIf(nodep->fileline(), nodep->condp()->cloneTree(true));
FileLine* const newFl = new FileLine{nodep->fileline()};
AstAlways* const alwaysp = new AstAlways{newFl, VAlwaysKwd::ALWAYS, nullptr, fakeIfp};
Expand Down

0 comments on commit c848fe7

Please sign in to comment.