From 84d7380588573305e816582c9a99725fc0cf0794 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Fri, 27 Nov 2020 08:50:29 -0500 Subject: [PATCH] Internals: Param immediate delete, in prep for next commit. No functional change intended. --- src/V3Param.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/V3Param.cpp b/src/V3Param.cpp index fbdf6bc67..13cb5caff 100644 --- a/src/V3Param.cpp +++ b/src/V3Param.cpp @@ -519,9 +519,7 @@ class ParamVisitor final : public AstNVisitor { } else if (AstParamTypeDType* modptp = pinp->modPTypep()) { AstNodeDType* dtypep = VN_CAST(pinp->exprp(), NodeDType); UASSERT_OBJ(dtypep, pinp, "unlinked param dtype"); - if (modptp->childDTypep()) { - pushDeletep(modptp->childDTypep()->unlinkFrBack()); - } + if (modptp->childDTypep()) modptp->childDTypep()->unlinkFrBack()->deleteTree(); // Set this parameter to value requested by cell modptp->childDTypep(dtypep->cloneTree(false)); // Later V3LinkDot will convert the ParamDType to a Typedef