mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We want a conditionally-copyable type to still be classified as trivial in cases where it's bitwise-copyable, has a trivial deinit, and is Copyable. The previous implementation here only checked at the declaration level whether a type was Copyable or not; get a more accurate answer by consulting the combination of information in the substituted type and abstraction pattern we have available during type lowering so that we classify definitely-copyable substitutions of a conditionally-copyable type as trivial. Should fix rdar://123654553 and rdar://123658878.
48 KiB
48 KiB