Skip to content

Commit

Permalink
Remove a special if for function variables
Browse files Browse the repository at this point in the history
Signed-off-by: Ryszard Rozak <[email protected]>
  • Loading branch information
RRozak committed Oct 30, 2023
1 parent 570a36d commit b585b48
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/V3LinkParse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,15 +292,6 @@ class LinkParseVisitor final : public VNVisitor {
nodep->v3warn(STATICVAR, "Static variable with assignment declaration declared in a "
"loop converted to automatic");
}
if (m_ftaskp) {
bool classMethod = m_ftaskp->classMethod();
if (!classMethod) {
AstClassOrPackageRef* const pkgrefp
= VN_CAST(m_ftaskp->classOrPackagep(), ClassOrPackageRef);
if (pkgrefp && VN_IS(pkgrefp->classOrPackagep(), Class)) classMethod = true;
}
if (nodep->lifetime().isNone()) nodep->lifetime(m_ftaskp->lifetime());
}
if (nodep->lifetime().isNone() && nodep->varType() != VVarType::PORT) {
nodep->lifetime(m_lifetime);
}
Expand Down

0 comments on commit b585b48

Please sign in to comment.