mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Credit for the cmake fix here goes to Saleem Abdulrasool. The substantive fix is embarrassing; I didn't pay close attention to the intrinsic's argument order and just assumed that the first argument for the replacement value was the low half (the part you'd find at index 0 if it were an array), but in fact it's the high half (the part you'd find at index 1). I also change the code to be much more reinterpret_casty, which isolates the type-punning mostly "within" the intrinsic, and which seems to match how other code uses it.
6.7 KiB
6.7 KiB