mirror of
https://github.com/verilator/verilator.git
synced 2026-09-07 18:06:07 +02:00
Internal cleanup: no functional change.
Add cloneTree to each node type so cast not required after use. Standardize declaring common AstNode functions via a macro.
This commit is contained in:
+1
-1
@@ -156,7 +156,7 @@ void V3LinkLevel::wrapTop(AstNetlist* netlistp) {
|
||||
if (AstVar* oldvarp=subnodep->castVar()) {
|
||||
UINFO(8,"VARWRAP "<<oldvarp<<endl);
|
||||
if (oldvarp->isIO()) {
|
||||
AstVar* varp = oldvarp->cloneTree(false)->castVar();
|
||||
AstVar* varp = oldvarp->cloneTree(false);
|
||||
newmodp->addStmtp(varp);
|
||||
varp->sigPublic(true); // User needs to be able to get to it...
|
||||
if (oldvarp->isIO()) {
|
||||
|
||||
Reference in New Issue
Block a user