Skip to content

Conversation

@xymus
Copy link
Contributor

@xymus xymus commented Dec 4, 2024

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.

This basically brings back #36666 which changes were lost a little while back apparently.

rdar://140596571

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
@xymus xymus requested a review from al45tair December 4, 2024 23:11
@xymus xymus requested a review from a team as a code owner December 4, 2024 23:11
@xymus
Copy link
Contributor Author

xymus commented Dec 4, 2024

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented Dec 5, 2024

@swift-ci Please smoke test Windows

@xymus
Copy link
Contributor Author

xymus commented Dec 5, 2024

@swift-ci Please smoke test Linux

2 similar comments
@xymus
Copy link
Contributor Author

xymus commented Dec 6, 2024

@swift-ci Please smoke test Linux

@xymus
Copy link
Contributor Author

xymus commented Dec 9, 2024

@swift-ci Please smoke test Linux

@xymus xymus merged commit 224efd7 into swiftlang:main Dec 9, 2024
3 checks passed
@xymus xymus deleted the optional-memcmp branch December 9, 2024 21:35
xymus added a commit to xymus/swift that referenced this pull request Feb 13, 2025
Fix the SwiftShims local declaration of memcmp for its parameters to
have the same optionality as the SDK version. They should be `_Nonnull`
to mirror the `_string` version.

Follow-up to swiftlang#77964

rdar://140596571
xymus added a commit to xymus/swift that referenced this pull request Sep 11, 2025
Fix the SwiftShims local declaration of `memcmp` for its parameters to
have the same optionality as the SDK version. They should be `_Nonnull`
to mirror the `_string` version.

Follow-up to swiftlang#77964 which wasn't
quite right.

rdar://140596571
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants