Skip to content

Conversation

@xymus
Copy link
Contributor

@xymus xymus commented 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. This helps the compiler using both the SwiftShims and SDK versions interchangeably which avoids compiler crashes.

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

rdar://140596571

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
@xymus xymus requested a review from a team as a code owner September 11, 2025 23:52
@xymus
Copy link
Contributor Author

xymus commented Sep 11, 2025

@swift-ci Please smoke test

@xymus
Copy link
Contributor Author

xymus commented Sep 12, 2025

It looks like the last version was right on macOS after all. There may be another configuration difference that I'm missing.

@xymus
Copy link
Contributor Author

xymus commented Sep 16, 2025

Closing, we need something more specific.

@xymus xymus closed this Sep 16, 2025
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.

1 participant