Skip to content

Commit

Permalink
Check the lifetime of a variable, not the staticness of a function
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 d9f5be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/V3Class.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ class ClassVisitor final : public VNVisitor {
void visit(AstVar* nodep) override {
iterateChildren(nodep);
if (m_packageScopep) {
if (m_ftaskp && m_ftaskp->isStatic()) {
if (m_ftaskp && nodep->lifetime().isStatic()) {
// Move later, or we wouldn't keep iterating the class
// We're really moving the VarScope but we might not
// have a pointer to it yet
Expand Down

0 comments on commit d9f5be1

Please sign in to comment.