mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Generalize BodyKind::MemberwiseInitializer
We'd like to support factor initializers for distributed actor types that are synthesized by SILGen. We already do something similar for memberwise initializers for structs. Thus, this patch generalizes that concept into a new BodyKind for AbstractFunctionDecls called BodyKind::SILSynthesize. In addition, to help differentiate the kinds of AFDs that are SILSynthesized into different families for SILGen to recognize, we also have a new enum SILSynthesizeKind to indicate whether it is a memberwise init, etc.
This commit is contained in:
committed by
Konrad `ktoso` Malawski
parent
c9bfccb3b4
commit
89629fe06f
@@ -56,7 +56,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 = 623; // remove designated types
|
||||
const uint16_t SWIFTMODULE_VERSION_MINOR = 624; // new BodyKind for AbstractFunctionDecl
|
||||
|
||||
/// A standard hash seed used for all string hashes in a serialized module.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user