Commit Graph

3 Commits

Author SHA1 Message Date
Alexis Laferrière
0c27a4c38c SwiftShims: memcmp should accept optional pointers on Darwin
Darwin defines memcmp with optional pointers. Update SwiftShims to
define it to the same type to avoid deserialization failures where we
get one over the other and the types don't match anymore.

rdar://140596571
2024-12-04 14:58:32 -08:00
Alexis Laferrière
c6acc94328 [Tests] memcmp-definitions should run only on Apple plaftorms 2021-04-02 15:28:50 -07:00
Alexis Laferrière
36f7f1bc87 [SwiftShims] Make the void* arguments of memcmp _Nullable on Darwin
This should correspond to the definition of memcmp in
usr/include/string.h and keep it from being a source of confusion for
the compiler.

rdar://69876253
2021-04-02 10:38:50 -07:00