mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Fix purity calculation during V3Const simplifying Ast
This commit is contained in:
+1
-1
@@ -1469,9 +1469,9 @@ private:
|
||||
beginp = new AstExprStmt{nodep->fileline(), beginp, outrefp};
|
||||
// AstExprStmt is currently treated as impure, so clear the cached purity of its
|
||||
// parents
|
||||
nodep->clearCachedPurity();
|
||||
nodep->replaceWith(beginp);
|
||||
VL_DO_DANGLING(nodep->deleteTree(), nodep);
|
||||
VIsCached::clearCacheTree();
|
||||
} else {
|
||||
insertBeforeStmt(nodep, beginp);
|
||||
if (nodep->taskp()->isFunction()) {
|
||||
|
||||
Reference in New Issue
Block a user