Fix dangling node on error

This commit is contained in:
Wilson Snyder 2022-01-02 20:54:13 -05:00
parent f36461e696
commit 7e355e211c
1 changed files with 1 additions and 1 deletions

View File

@ -1463,8 +1463,8 @@ private:
-1, // Pin# not relevant
nodep->name(), exprp);
cellp->addParamsp(pinp);
VL_DO_DANGLING(nodep->unlinkFrBack()->deleteTree(), nodep);
}
VL_DO_DANGLING(nodep->unlinkFrBack()->deleteTree(), nodep);
}
virtual void visit(AstPort* nodep) override {
// Port: Stash the pin number