mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Use AstNode::addHereThisAsNext in a few places
This commit is contained in:
+1
-4
@@ -68,10 +68,7 @@ private:
|
||||
// Put assignment before the referencing statement
|
||||
AstAssign* const assp = new AstAssign{
|
||||
nodep->fileline(), new AstVarRef{nodep->fileline(), varp, VAccess::WRITE}, nodep};
|
||||
VNRelinker linker2;
|
||||
m_stmtp->unlinkFrBack(&linker2);
|
||||
assp->addNext(m_stmtp);
|
||||
linker2.relink(assp);
|
||||
m_stmtp->addHereThisAsNext(assp);
|
||||
}
|
||||
|
||||
// VISITORS
|
||||
|
||||
Reference in New Issue
Block a user