Internals: Use addNext. No functional change intended
This commit is contained in:
parent
51eb5346c8
commit
6945f04531
|
|
@ -897,11 +897,7 @@ class ForceConvertVisitor final : public VNVisitor {
|
|||
stmtListp = assignp;
|
||||
}
|
||||
|
||||
if (varInfo->m_forceRdVscp) {
|
||||
AstNode* tailp = stmtListp;
|
||||
while (tailp->nextp()) tailp = tailp->nextp();
|
||||
tailp->addNextHere(m_state.createForceRdUpdateStmt(*varInfo));
|
||||
}
|
||||
if (varInfo->m_forceRdVscp) stmtListp->addNext(m_state.createForceRdUpdateStmt(*varInfo));
|
||||
|
||||
nodep->replaceWith(stmtListp);
|
||||
VL_DO_DANGLING(pushDeletep(nodep), nodep);
|
||||
|
|
|
|||
Loading…
Reference in New Issue