Internals: Param immediate delete, in prep for next commit. No functional change intended.

This commit is contained in:
Wilson Snyder 2020-11-27 08:50:29 -05:00
parent 04febb1944
commit 84d7380588
1 changed files with 1 additions and 3 deletions

View File

@ -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