Skip to content

[silgen] Emit the location of the original function def if SILGen is erroring on a duplicate symbol definition. #72760

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Apr 2, 2024

This diagnostic is useful around silgen_name where it validates that we do not have any weird collisions. Sadly, it just points where one of the conflicting elements is... with this patch, we also emit an error on the other function if we have a SILLocation.

@gottesmm
Copy link
Contributor Author

gottesmm commented Apr 2, 2024

@swift-ci smoke test

@gottesmm gottesmm enabled auto-merge April 2, 2024 02:59
…erroring on a duplicate symbol definition.

This diagnostic is useful around silgen_name where it validates that we do not
have any weird collisions. Sadly, it just points where one of the conflicting
elements is... with this patch, we also emit an error on the other function if
we have a SILLocation.
@gottesmm gottesmm force-pushed the pr-9f0fef6eb535d1e5860df021c272806b2a8494f8 branch from c1dc3d9 to 19c72ac Compare April 2, 2024 05:01
@gottesmm
Copy link
Contributor Author

gottesmm commented Apr 2, 2024

@swift-ci smoke test

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