mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Declare NonIsolatedCaller as kind of FunctionTypeIsolation
This would make sure that async function types marked as `@execution(caller)` have correct isolation. Also defines all of the possible conversions to and from `caller` isolated function types.
This commit is contained in:
@@ -58,7 +58,7 @@ const uint16_t SWIFTMODULE_VERSION_MAJOR = 0;
|
||||
/// describe what change you made. The content of this comment isn't important;
|
||||
/// it just ensures a conflict if two people change the module format.
|
||||
/// Don't worry about adhering to the 80-column limit for this line.
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 921; // remove alloc_vector
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 922; // function type isolation - caller
|
||||
|
||||
/// A standard hash seed used for all string hashes in a serialized module.
|
||||
///
|
||||
@@ -707,6 +707,7 @@ enum class FunctionTypeIsolation : uint8_t {
|
||||
Parameter,
|
||||
Erased,
|
||||
GlobalActorOffset, // Add this to the global actor type ID
|
||||
NonIsolatedCaller,
|
||||
};
|
||||
using FunctionTypeIsolationField = TypeIDField;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user