Fix lifetime of expression coverage variable (#7834)

Signed-off-by: Ryszard Rozak <[email protected]>
This commit is contained in:
Ryszard Rozak
2026-06-24 09:59:32 -04:00
committed by GitHub
parent 9462c2a910
commit def1e2ccbc
2 changed files with 5 additions and 1 deletions
+1
View File
@@ -824,6 +824,7 @@ class CoverageVisitor final : public VNVisitor {
if (pair.second) {
varp = new AstVar{fl, VVarType::MODULETEMP, m_exprTempNames.get(frefp),
dtypep};
varp->lifetime(VLifetime::AUTOMATIC_EXPLICIT);
pair.first->second = varp;
if (m_ftaskp) {
varp->funcLocal(true);