Fix cleaning purity cache after assertions

This commit is contained in:
Geza Lore 2026-07-02 17:47:09 +01:00
parent 1106e89c84
commit 0e371d6e5c
1 changed files with 2 additions and 0 deletions

View File

@ -1180,6 +1180,8 @@ public:
V3Stats::addStat("Assertions, $past variables", m_statPastVars);
V3Stats::addStat("Assertions, assertOn checks combined", m_statAssertOnCombined);
V3Stats::addStat("Assertions, assertOn checks hoisted", m_statAssertOnHoisted);
// Rewrites can change purity, e.g. by compiling out assertion statements with --no-assert
VIsCached::clearCacheTree();
}
};