Skip to content

Commit

Permalink
Replace auto* with explicitly typed const ptr
Browse files Browse the repository at this point in the history
Co-authored-by: Wilson Snyder <[email protected]>
  • Loading branch information
kbieganski and wsnyder committed Nov 16, 2023
1 parent b755e94 commit ae8b75c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/V3Fork.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ae8b75c

Please sign in to comment.