From a963938f0b319cdb76bc77136f80dcbe0e7d17ba Mon Sep 17 00:00:00 2001 From: Szymon Gizler <151655464+sgizler@users.noreply.github.com> Date: Sun, 21 Jul 2024 20:20:10 +0200 Subject: [PATCH] Make SyntaxRewriter call Derived::visit() rather SyntaxVisitor::visit() (#1065) --- include/slang/syntax/SyntaxVisitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/slang/syntax/SyntaxVisitor.h b/include/slang/syntax/SyntaxVisitor.h index 5f3834359..82204dc56 100644 --- a/include/slang/syntax/SyntaxVisitor.h +++ b/include/slang/syntax/SyntaxVisitor.h @@ -115,7 +115,7 @@ class SyntaxRewriter : public SyntaxVisitor { commits.clear(); tempTrees.clear(); - tree->root().visit(*this); + tree->root().visit(*DERIVED); if (commits.empty()) return tree;