mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
In value witness table generation, and probably other places, we're inappropriately assuming that 'initializeWithTake' is equivalent to a memcpy in all cases, which isn't true for types that carry weak references or for potentially other types in the future. Add an 'isBitwiseTakable' property to TypeInfos that can be checked to see whether a type is bitwise-takable. Swift SVN r16799
12 KiB
12 KiB