From ae8b75cc662dcdaa0d8c226908b190127a441269 Mon Sep 17 00:00:00 2001 From: Krzysztof Bieganski Date: Thu, 16 Nov 2023 10:31:38 +0100 Subject: [PATCH] Replace `auto*` with explicitly typed const ptr Co-authored-by: Wilson Snyder --- src/V3Fork.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3Fork.cpp b/src/V3Fork.cpp index 7d78c08505..fa167c63ea 100644 --- a/src/V3Fork.cpp +++ b/src/V3Fork.cpp @@ -419,7 +419,7 @@ class DynScopeVisitor final : public VNVisitor { [](AstVarRef* refp) { return refp->varp()->isFuncLocal(); })) { nodep->user2(true); // Put it in a fork to prevent lifetime issues with the local - auto* forkp = new AstFork{nodep->fileline(), "", nullptr}; + AstFork* const forkp = new AstFork{nodep->fileline(), "", nullptr}; forkp->joinType(VJoinType::JOIN_NONE); nodep->replaceWith(forkp); forkp->addStmtsp(nodep);