Skip to content

[cxx-interop] Fix assert failure due to invalid location #83032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 15, 2025

Conversation

Xazax-hun
Copy link
Contributor

We hit an assert failure do to creating a range where the begin was a valid source location while the end range was an invalid one. Unfortunately, I was not able to create a minimal reproducer but I was able to verify that this fix works because I was able to reproduce this issue while compiling Swift with a patched version of Clang.

rdar://155379027

We hit an assert failure do to creating a range where the begin was a
valid source location while the end range was an invalid one.
Unfortunately, I was not able to create a minimal reproducer but I was
able to verify that this fix works because I was able to reproduce this
issue while compiling Swift with a patched version of Clang.

rdar://155379027
@Xazax-hun Xazax-hun added the c++ interop Feature: Interoperability with C++ label Jul 14, 2025
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@egorzhdan egorzhdan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@Xazax-hun Xazax-hun enabled auto-merge July 14, 2025 17:11
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test macos

@Xazax-hun Xazax-hun merged commit cbc0e80 into swiftlang:main Jul 15, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants