Fix constant pool recache after dead scope removal (#7845)

This commit is contained in:
Nick Brereton
2026-06-28 09:30:48 -04:00
committed by GitHub
parent d023b3b075
commit 59b85f670b
5 changed files with 119 additions and 8 deletions
+1 -1
View File
@@ -597,7 +597,7 @@ public:
// We may have removed some datatypes, cleanup
nodep->typeTablep()->repairCache();
VIsCached::clearCacheTree(); // Removing assignments may affect isPure
nodep->constPoolp()->reCache();
nodep->constPoolp()->rebuildVarScopesAndCache();
}
~DeadVisitor() override {
V3Stats::addStatSum("Optimizations, deadified FTasks", m_statFTasksDeadified);