mirror of
https://github.com/verilator/verilator.git
synced 2025-05-01 13:06:56 +00:00
Fix not iterating some extended classes depending on declaration order.
This commit is contained in:
parent
dc1f44840d
commit
b0cb43b2f2
@ -2203,6 +2203,9 @@ private:
|
|||||||
}
|
}
|
||||||
virtual void visit(AstClass* nodep) override {
|
virtual void visit(AstClass* nodep) override {
|
||||||
if (nodep->didWidthAndSet()) return;
|
if (nodep->didWidthAndSet()) return;
|
||||||
|
// Must do extends first, as we may in functions under this class
|
||||||
|
// start following a tree of extends that takes us to other classes
|
||||||
|
userIterateAndNext(nodep->extendsp(), nullptr);
|
||||||
userIterateChildren(nodep, nullptr); // First size all members
|
userIterateChildren(nodep, nullptr); // First size all members
|
||||||
nodep->repairCache();
|
nodep->repairCache();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user