Add comment

Signed-off-by: Kamil Danecki <kdanecki@internships.antmicro.com>
This commit is contained in:
Kamil Danecki 2026-03-26 09:22:47 +01:00
parent 8eaf171135
commit c816addc60
1 changed files with 2 additions and 0 deletions

View File

@ -385,6 +385,8 @@ class LinkParseVisitor final : public VNVisitor {
}
}
} else if (m_ftaskp) {
// Variables in static tasks with timing control can be used after the task has ended
// with use of join..fork_none, so they need to be static
if (m_ftaskp->lifetime().isStatic() && m_hasTimingControl) {
nodep->lifetime(VLifetime::STATIC_IMPLICIT);
} else {