Skip to content

Commit 02d802d

Browse files
committed
Delete m_disableSeqIfp
Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
1 parent 7de276d commit 02d802d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/V3AssertPre.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -690,6 +690,8 @@ class AssertPreVisitor final : public VNVisitor {
690690
m_disableSeqIfp
691691
= new AstIf{flp, new AstEq{flp, new AstVarRef{flp, initialCntp, VAccess::READ},
692692
readCntRefp->cloneTree(false)}};
693+
// Delete it, because it is always copied before insetion to the AST
694+
pushDeletep(m_disableSeqIfp);
693695
}
694696
iterateChildren(nodep);
695697
}

0 commit comments

Comments
 (0)