File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -41,15 +41,16 @@ enum SingletonTypeSynthesizer {
41
41
_any,
42
42
_bridgeObject,
43
43
_error,
44
- _executor,
44
+ _executor, // the 'BuiltinExecutor' type
45
45
_job,
46
46
_nativeObject,
47
47
_never,
48
48
_rawPointer,
49
49
_rawUnsafeContinuation,
50
50
_void,
51
51
_word,
52
- _serialExecutor,
52
+ _executorProtocol, // the '_Concurrency.Executor' protocol
53
+ _serialExecutor, // the '_Concurrency.SerialExecutor' protocol
53
54
};
54
55
inline Type synthesizeType (SynthesisContext &SC,
55
56
SingletonTypeSynthesizer kind) {
@@ -66,9 +67,15 @@ inline Type synthesizeType(SynthesisContext &SC,
66
67
case _void: return SC.Context .TheEmptyTupleType ;
67
68
case _word: return BuiltinIntegerType::get (BuiltinIntegerWidth::pointer (),
68
69
SC.Context );
69
- case _serialExecutor:
70
+ case _executorProtocol:
71
+ return SC.Context .getProtocol (KnownProtocolKind::Executor)
72
+ ->getDeclaredInterfaceType ();
73
+ case _serialExecutor:
70
74
return SC.Context .getProtocol (KnownProtocolKind::SerialExecutor)
71
75
->getDeclaredInterfaceType ();
76
+ case _taskExecutor:
77
+ return SC.Context .getProtocol (KnownProtocolKind::TaskExecutor)
78
+ ->getDeclaredInterfaceType ();
72
79
}
73
80
}
74
81
Original file line number Diff line number Diff line change @@ -115,6 +115,6 @@ getDistributedSerializationRequirements(
115
115
ProtocolDecl *protocol,
116
116
llvm::SmallPtrSetImpl<ProtocolDecl *> &requirementProtos);
117
117
118
- // ==== ------------------------------------------------------------------------
118
+ }
119
119
120
120
#endif /* SWIFT_DECL_DISTRIBUTEDDECL_H */
You can’t perform that action at this time.
0 commit comments