Improve propagation of process requirement and decouple it from suspendability (#4321)

This commit is contained in:
Krzysztof Boroński
2023-07-14 17:12:02 +02:00
committed by GitHub
parent ced1dfeffd
commit 4bdda3f240
6 changed files with 322 additions and 67 deletions
+1 -1
View File
@@ -419,7 +419,7 @@ void EmitCFunc::emitCCallArgs(const AstNodeCCall* nodep, const string& selfPoint
}
if (nodep->funcp()->needProcess()) {
if (comma) puts(", ");
if (VN_IS(nodep->backp(), CAwait)) {
if (VN_IS(nodep->backp(), CAwait) || !nodep->funcp()->isCoroutine()) {
puts("vlProcess");
} else {
puts("std::make_shared<VlProcess>()");