mirror of
https://github.com/verilator/verilator.git
synced 2025-01-24 07:14:22 +00:00
Fix iteration fixup in AstNode::addHereThisAsNext
Previous version broke verialor_ext_tests due to iteration order
mismatch after 3fc8249429
This commit is contained in:
parent
1d400dd98c
commit
1c5e5704f5
@ -674,10 +674,10 @@ void AstNode::addHereThisAsNext(AstNode* newp) {
|
||||
tailp->m_headtailp = newp;
|
||||
}
|
||||
// Iterator fixup
|
||||
if (newLastp->m_iterpp) {
|
||||
*(newLastp->m_iterpp) = this;
|
||||
} else if (this->m_iterpp) {
|
||||
if (newLastp->m_iterpp) *(newLastp->m_iterpp) = this;
|
||||
if (this->m_iterpp) {
|
||||
*(this->m_iterpp) = newp;
|
||||
this->m_iterpp = nullptr;
|
||||
}
|
||||
//
|
||||
debugTreeChange(this, "-addHereThisAsNext: ", __LINE__, true);
|
||||
|
Loading…
Reference in New Issue
Block a user