mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In task-to-thread concurrency mode, `_getMainExecutorAsSerialExecutor` returns `SerialExecutorRef::generic()`, which is, give or take, NULL. Unfortunately we'd declared it as returning `any SerialExecutor`, rather than `(any SerialExecutor)?`, and then the `getMainExecutor()` function was calling `asUnownedSerialExecutor()` on it, which then crashes. rdar://153152063
4.6 KiB
4.6 KiB