Remove the implicit nil inhabitant of Builtin.Executor,

and traffic in Optional<Builtin.Executor> in various places.
This commit is contained in:
John McCall
2021-04-15 03:32:35 -04:00
parent 186c53000d
commit ec5215bf4f
16 changed files with 151 additions and 82 deletions

View File

@@ -620,7 +620,7 @@ IRGenModule::IRGenModule(IRGenerator &irgen,
SwiftTaskPtrTy = SwiftTaskTy->getPointerTo(DefaultAS);
SwiftAsyncLetPtrTy = Int8PtrTy; // we pass it opaquely (AsyncLet*)
SwiftTaskGroupPtrTy = Int8PtrTy; // we pass it opaquely (TaskGroup*)
ExecutorFirstTy = RefCountedPtrTy;
ExecutorFirstTy = SizeTy;
ExecutorSecondTy = SizeTy;
SwiftExecutorTy = createStructType(*this, "swift.executor", {
ExecutorFirstTy, // identity