mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We need to arrange enum type metadata in a way where a client can fish out generic parameters without knowing if we have a payload size or not. The payload size is only used inside the module that defined the enum, and may change if new cases are added. So put the generic parameters first before the payload size, and don't crash when an EnumMetadataScanner is used with a resilient enum.
9.1 KiB
9.1 KiB