fixup! Set static when task has timing control

This commit is contained in:
Kamil Danecki 2026-03-24 09:29:59 +01:00
parent 88a0b7df68
commit 24a50a39bf
1 changed files with 1 additions and 1 deletions

View File

@ -382,7 +382,7 @@ class LinkParseVisitor final : public VNVisitor {
}
}
} else if (m_ftaskp) {
if (m_ftaskp->existsAndNext([&](const AstNode* nodep) {return nodep->isTimingControl();})) {
if (m_ftaskp->exists([&](const AstNode* nodep) {return nodep->isTimingControl();})) {
nodep->lifetime(VLifetime::STATIC_IMPLICIT);
} else {
nodep->lifetime(VLifetime::AUTOMATIC_IMPLICIT);