Fix function locals in display %p

This commit is contained in:
Wilson Snyder
2026-02-26 18:12:12 -05:00
parent 2efcfa567c
commit af65a85a1e
3 changed files with 25 additions and 6 deletions
+1
View File
@@ -451,6 +451,7 @@ class TaskVisitor final : public VNVisitor {
= new AstVar{invarp->fileline(), VVarType::BLOCKTEMP, name, invarp};
newvarp->funcLocal(false);
newvarp->propagateAttrFrom(invarp);
newvarp->isInternal(true);
m_modp->addStmtsp(newvarp);
AstVarScope* const newvscp = new AstVarScope{newvarp->fileline(), m_scopep, newvarp};
m_scopep->addVarsp(newvscp);