mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 18:13:50 +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 @@ private:
|
||||
// Make all of the required clones
|
||||
m_instLsb = m_cellRangep->lsbConst();
|
||||
for (m_instNum = m_instLsb; m_instNum<=m_cellRangep->msbConst(); m_instNum++) {
|
||||
AstCell* newp = nodep->cloneTree(false)->castCell();
|
||||
AstCell* newp = nodep->cloneTree(false);
|
||||
nodep->addNextHere(newp);
|
||||
// Remove ranging and fix name
|
||||
newp->rangep()->unlinkFrBack()->deleteTree();
|
||||
|
||||
Reference in New Issue
Block a user