Commit f66bcd9
[stdlib] Fix calling convention mismatch for swift_COWChecksEnabled
`ContiguousArrayBuffer.swift` calls `swift_COWChecksEnabled` with the
Swift calling convention, but the functions is defined with the C calling
convention. This mismatch actually happens only when building with
`enable-array-cow-checks` (which is not enabled by default).
Also ideal fix would be to put `@_cdecl` on the function declared in
Swift-side to choose the correct calling convention. `@cdecl` without
body is not supported yet but discussed in https://forums.swift.org/t/formalizing-cdecl/406771 parent 5487f9f commit f66bcd9
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| |||
0 commit comments