Skip to content

[Cherry-pick] [Wunsafe-buffer-usage] False positives for & expression indexing constant size array (arr[anything & 0]) (#112284) #10105

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 26, 2025

Conversation

malavikasamak
Copy link

Do not warn when a constant sized array is indexed with an expression that contains bitwise and operation involving constants and it always results in a bound safe access.

(rdar://136684050)

…tant size array (arr[anything & 0]) (llvm#112284)

Do not warn when a constant sized array is indexed with an expression
that contains bitwise and operation
involving constants and it always results in a bound safe access.

(rdar://136684050)

---------

Co-authored-by: MalavikaSamak <[email protected]>
(cherry picked from commit ab9cd53)
@malavikasamak malavikasamak requested a review from a team as a code owner February 24, 2025 23:00
@malavikasamak
Copy link
Author

@swift-ci test

1 similar comment
@malavikasamak
Copy link
Author

@swift-ci test

@malavikasamak malavikasamak merged commit 5dc8ea8 into stable/20240723 Feb 26, 2025
3 checks passed
@malavikasamak malavikasamak deleted the msamak-cherry-pick-const-bit-and branch February 26, 2025 04:23
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