diff --git a/src/V3Depth.cpp b/src/V3Depth.cpp index b7f70e3a5..f1728812f 100644 --- a/src/V3Depth.cpp +++ b/src/V3Depth.cpp @@ -150,6 +150,8 @@ public: explicit DepthVisitor(AstNetlist* nodep) : m_tempNames{"__Vdeeptemp"} { iterate(nodep); + // Extracting expressions can effect purity + VIsCached::clearCacheTree(); } ~DepthVisitor() override = default; };