Skip to content

Commit

Permalink
Remember .randomize() explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
kiryk committed Nov 28, 2023
1 parent c97b829 commit 4f6a1c7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/V3Task.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1530,8 +1530,7 @@ class TaskVisitor final : public VNVisitor {
m_statep->ftaskCFuncp(nodep, cfuncp);
}
if (nodep->classMethod() && nodep->name() == "randomize") {
AstClass *classp = m_statep->getClassp(nodep);
classp->randomize(cfuncp);
m_statep->getClassp(nodep)->randomize(cfuncp);
}
iterateIntoFTask(clonedFuncp); // Do the clone too
}
Expand Down

0 comments on commit 4f6a1c7

Please sign in to comment.