Skip to content

Commit 89007e2

Browse files
committed
runtime: work around the missing task-enqueue implementation
Instead of assert, just run the job immediately. Needed to make the hop_to_executor IRGen test of the following commit working.
1 parent 752558c commit 89007e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/public/Concurrency/Actor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1358,7 +1358,7 @@ void swift::swift_task_enqueue(Job *job, ExecutorRef executor) {
13581358
return asImpl(executor.getDefaultActor())->enqueue(job);
13591359

13601360
// FIXME: call the general method.
1361-
assert(false && "don't know how to enqueue on this executor");
1361+
job->run(executor);
13621362
}
13631363

13641364
SWIFT_CC(swift)

0 commit comments

Comments
 (0)