swift
bf2ec7eb - [transferring] Change transferring to no longer be a ParamSpecifier.

Commit
1 year ago
[transferring] Change transferring to no longer be a ParamSpecifier. Instead it is a bit on ParamDecl and SILParameterInfo. I preserve the consuming behavior by making it so that the type checker changes the ParamSpecifier to ImplicitlyCopyableConsuming if we have a default param specifier and transferring is set. NOTE: The user can never write ImplicitlyCopyableConsuming. NOTE: I had to expand the amount of flags that can be stored in ParamDecl so I stole bits from TypeRepr and added some logic for packing option bits into TyRepr and DefaultValue. rdar://121324715
Author
Committer
Parents
Loading