mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In a few places, we have to be careful about the distinction between "empty in this resilience domain" versus "empty in all resilience domains". Make callers think about this by adding a parameter instead of relying on them to check isFixedSize() as necessary first. While making this change I noticed that the code for checking if types are empty when computing extra inhabitants of structs and enums might be slightly wrong in the face of resilience; I will revisit this later.
13 KiB
13 KiB