Skip to content

[ASTGen] Relax assertion on BridgedSourceLoc initializer #68778

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
Sep 27, 2023

Conversation

ahoppen
Copy link
Member

@ahoppen ahoppen commented Sep 26, 2023

We do allow SourceLoc to point to the address right after the buffer ends to point to the end of a file.

Fixes an issue found by the SourceKit stress tester.

We do allow `SourceLoc` to point to the address right after the buffer ends to point to the end of a file.
@ahoppen
Copy link
Member Author

ahoppen commented Sep 26, 2023

@swift-ci Please smoke test

@ahoppen ahoppen merged commit 580e618 into swiftlang:main Sep 27, 2023
@ahoppen ahoppen deleted the ahoppen/relax-assertion branch September 27, 2023 03:48
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