Skip to content

[CherryPick][StaticAnalyzer] Fix crashing __builtin_bit_cast (#139188) #11062

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 2 commits into from
Jul 28, 2025

Conversation

ziqingluo-90
Copy link

Previously, CSA did not handle __builtin_bit_cast correctly. It evaluated the LvalueToRvalue conversion for the casting expression, but did not actually convert the value of the expression to be of the destination type.
This commit fixes the problem.

rdar://149987320

Previously, CSA did not handle __builtin_bit_cast correctly. It
evaluated the LvalueToRvalue conversion for the casting expression,
but did not actually convert the value of the expression to be of the
destination type.
This commit fixes the problem.

rdar://149987320
@ziqingluo-90 ziqingluo-90 requested a review from a team as a code owner July 25, 2025 07:11
@ziqingluo-90
Copy link
Author

CC @dtarditi

@ziqingluo-90
Copy link
Author

@swift-ci test llvm

@ziqingluo-90
Copy link
Author

@swift-ci test

@ziqingluo-90 ziqingluo-90 merged commit ed0df86 into stable/20240723 Jul 28, 2025
4 checks passed
@ziqingluo-90 ziqingluo-90 deleted the dev/ziqing/cherrypick-149987320 branch July 28, 2025 10:02
@dtarditi
Copy link

Thank you!

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