[sil] Add a new attribute called @closureCaptured to SILFunctionArguments that are closure capture arguments.

I am adding this to make it easy to determine if a SILFunction that is not inout
aliasable is captured. This is useful when emitting certain types of
diagnostics like I need to emit with move only.
This commit is contained in:
Michael Gottesman
2022-12-14 14:03:52 -08:00
parent f735eda198
commit 9e44011e4d
36 changed files with 157 additions and 137 deletions

View File

@@ -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 = 726; // SIL function lowering change
const uint16_t SWIFTMODULE_VERSION_MINOR = 727; // closure capture args
/// A standard hash seed used for all string hashes in a serialized module.
///