From d16f3988de3d364dfe3f458f47bf7d9b50dbdb2d Mon Sep 17 00:00:00 2001 From: Yilou Wang Date: Wed, 5 Nov 2025 11:17:53 +0100 Subject: [PATCH] add VL_RESTORER for m_clonedConstraints --- src/V3Randomize.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3Randomize.cpp b/src/V3Randomize.cpp index 5f5792216..ebb2dfee1 100644 --- a/src/V3Randomize.cpp +++ b/src/V3Randomize.cpp @@ -335,6 +335,7 @@ class RandomizeMarkVisitor final : public VNVisitor { void visit(AstClass* nodep) override { VL_RESTORER(m_classp); VL_RESTORER(m_modp); + VL_RESTORER(m_clonedConstraints); m_modp = m_classp = nodep; iterateChildrenConst(nodep); if (nodep->extendsp()) {