mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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
258 KiB
258 KiB