Skip to content

[Cherry-pick][-Wunsafe-buffer-usage] Fix false positives in warning againt 2-parameter std::span constructor (#115797) #9629

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
Nov 19, 2024

Conversation

malavikasamak
Copy link

Cherry-picked commit: 0dcb0ac

…eter std::span constructor (llvm#115797)

Do not warn when two parameter constructor receives pointer address from
a std::addressof method and the span size is set to 1.

(rdar://139298119)

Co-authored-by: MalavikaSamak <malavika2@apple.com>
(cherry picked from commit 0dcb0ac)
@malavikasamak
Copy link
Author

@swift-ci test

@malavikasamak malavikasamak merged commit b84f451 into stable/20240723 Nov 19, 2024
3 checks passed
@malavikasamak malavikasamak deleted the msamak-cherrypick-fp-addressof branch November 19, 2024 09:05
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