Skip to content
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

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

Open
wants to merge 1 commit into
base: stable/20240723
Choose a base branch
from

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

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