Use AstNode::addHereThisAsNext in a few places

This commit is contained in:
Geza Lore
2022-07-13 13:57:00 +01:00
parent e0a38ce2c2
commit 3fc8249429
3 changed files with 3 additions and 12 deletions
+1 -4
View File
@@ -109,10 +109,7 @@ private:
} else if (m_inTracep) {
m_inTracep->addPrecondsp(newp);
} else if (m_stmtp) {
VNRelinker linker;
m_stmtp->unlinkFrBack(&linker);
newp->addNext(m_stmtp);
linker.relink(newp);
m_stmtp->addHereThisAsNext(newp);
} else {
newp->v3fatalSrc("No statement insertion point.");
}