mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +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
372 B
372 B