mirror of
https://github.com/verilator/verilator.git
synced 2025-05-04 06:26:54 +00:00
Fix linear search; this is part of the fix for issue 1316.
This commit is contained in:
parent
cf0464c263
commit
94c8064798
@ -150,7 +150,8 @@ private:
|
||||
AstActive* createActivePost(AstVarRef* varrefp) {
|
||||
AstActive* newactp = new AstActive (varrefp->fileline(), "sequentdly",
|
||||
m_activep->sensesp());
|
||||
m_activep->addNext(newactp);
|
||||
// Was addNext(), but addNextHere() avoids a linear search.
|
||||
m_activep->addNextHere(newactp);
|
||||
return newactp;
|
||||
}
|
||||
void checkActivePost(AstVarRef* varrefp, AstActive* oldactivep) {
|
||||
|
Loading…
Reference in New Issue
Block a user