mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
We should pass foreign references as Direct_Unowned calling convention, this happened for non-const pointers. Unfortunately, we passed the const variants as Indirect_In. This resulted in SILGen trying to insert a non-sensical conversion. This triggered an assertion failure or a miscompilation depending on how the compiler was compiled. rdar://149398905
2.4 KiB
2.4 KiB