Skip to content

Serialization: Fix a warning in SILDeserializer::readLoc() #78172

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
Dec 13, 2024

Conversation

tshortli
Copy link
Contributor

Follow up to #76934.

The switch is not safely covered since deserialization could read any unsigned value, so there must be a return at the end of the method.

Also, run clang-format.

The switch is not safely covered since deserialization could read any
`unsigned` value, so there must be a return at the end of the method.

Also, run clang-format.
@tshortli tshortli requested a review from xymus as a code owner December 13, 2024 17:44
@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge December 13, 2024 17:44
@usama54321
Copy link
Contributor

Thanks for fixing this

@tshortli tshortli merged commit 10e996b into swiftlang:main Dec 13, 2024
3 checks passed
@tshortli tshortli deleted the deserializer-readloc-warnings branch December 13, 2024 21:55
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