Fix forked processes compiled as slow/cold (#3766)

This commit is contained in:
Wilson Snyder 2022-12-11 14:44:18 -05:00
parent afc66f6a85
commit 0a3c90e517

View File

@ -237,6 +237,7 @@ void orderSequentially(AstCFunc* funcp, const LogicByScope& lbs) {
bodyp->unlinkFrBackWithNext();
// If the process is suspendable, we need a separate function (a coroutine)
if (procp->isSuspendable()) {
funcp->slow(false);
subFuncp = createNewSubFuncp(scopep);
subFuncp->name(subFuncp->name() + "__" + cvtToStr(scopep->user2Inc()));
subFuncp->rtnType("VlCoroutine");