Skip to content

[5.10] Remove a bogus assertion. #8129

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
Feb 7, 2024

Conversation

hyp
Copy link

@hyp hyp commented Feb 6, 2024

The result of recomputing the type of an LValue may be different from the type we find serialized with that LValue, either due to differing type sugar in a redeclaration, or more significantly due to a later declaration of a variable having an array bound that a prior declaration did not have. Therefore this assertion was attempting to verify a property that isn't necessarily true.

(cherry-picked commit 2009f24)

Needed to build Arc browser with Swift 5.10

The result of recomputing the type of an LValue may be different from
the type we find serialized with that LValue, either due to differing
type sugar in a redeclaration, or more significantly due to a later
declaration of a variable having an array bound that a prior declaration
did not have. Therefore this assertion was attempting to verify a
property that isn't necessarily true.

(cherry-picked commit 2009f24)
@hyp hyp requested a review from compnerd February 6, 2024 17:52
@hyp hyp changed the title Remove a bogus assertion. [5.10] Remove a bogus assertion. Feb 6, 2024
@hyp
Copy link
Author

hyp commented Feb 6, 2024

@swift-ci please test

@hyp hyp merged commit e2de39e into swiftlang:swift/release/5.10 Feb 7, 2024
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.

3 participants