diff --git a/src/V3Randomize.cpp b/src/V3Randomize.cpp index 6a7b00c9e..94e694485 100644 --- a/src/V3Randomize.cpp +++ b/src/V3Randomize.cpp @@ -295,6 +295,7 @@ class RandomizeMarkVisitor final : public VNVisitor { } }); if (isDuplicate) return; + AstConstraint* const cloneConstrp = constrp->cloneTree(false); cloneConstrp->name(newName); cloneConstrp->foreach([&](AstVarRef* varRefp) {