mirror of
https://github.com/verilator/verilator.git
synced 2025-01-06 06:37:45 +00:00
Internals: Remove unnecessary cloneTree.
This commit is contained in:
parent
c324895cbc
commit
ad329612fd
@ -1799,7 +1799,7 @@ private:
|
|||||||
UASSERT_OBJ((rstart + rwidth) == lstart, nodep,
|
UASSERT_OBJ((rstart + rwidth) == lstart, nodep,
|
||||||
"tried to merge two selects which are not adjacent");
|
"tried to merge two selects which are not adjacent");
|
||||||
AstSel* const newselp = new AstSel{
|
AstSel* const newselp = new AstSel{
|
||||||
lselp->fromp()->fileline(), rselp->fromp()->cloneTree(false), rstart, lwidth + rwidth};
|
lselp->fromp()->fileline(), rselp->fromp()->unlinkFrBack(), rstart, lwidth + rwidth};
|
||||||
UINFO(5, "merged two adjacent sel " << lselp << " and " << rselp << " to one " << newselp
|
UINFO(5, "merged two adjacent sel " << lselp << " and " << rselp << " to one " << newselp
|
||||||
<< endl);
|
<< endl);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user