Fix wide enum names (#8344)

This commit is contained in:
Marco Bartoli
2026-09-14 16:29:42 -04:00
committed by GitHub
parent 377865e2a0
commit c65f312d6e
23 changed files with 827 additions and 156 deletions
+5
View File
@@ -447,6 +447,11 @@ class DeadVisitor final : public VNVisitor {
checkDType(nodep);
checkAll(nodep);
}
void visit(AstEnumDType* nodep) override {
// Keep cached lookup tables until V3WidthCommit releases the cache.
for (const auto& entry : nodep->tableMap()) entry.second->user1Inc();
visit(static_cast<AstNodeDType*>(nodep));
}
void visit(AstEnumItemRef* nodep) override {
iterateChildren(nodep);
checkAll(nodep);