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

[BoundsSafety][-Wunsafe-buffer-usage] Interop cherry-picks #9766

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

Conversation

ziqingluo-90
Copy link

Same cherry picks as #9746 but towards stable/20240723

@ziqingluo-90 ziqingluo-90 requested a review from a team as a code owner December 19, 2024 00:37
@ziqingluo-90
Copy link
Author

@swift-ci test

@ziqingluo-90
Copy link
Author

@swift-ci test llvm

…truction from bounds-attributed pointers (swiftlang#9746)

For a `__sized_by(n)` pointer `p`, constructing a std::span the way below is safe.
`std::span<char>{(char *)p, n}`

cherry-picked from downstream
(rdar://141103910)

(cherry picked from commit ec0e03c)
@ziqingluo-90 ziqingluo-90 force-pushed the ziqing/stable20240723/interop-cherrypicks branch from 0031494 to 40107d6 Compare December 19, 2024 23:36
@ziqingluo-90
Copy link
Author

@swift-ci test
@swift-ci test llvm

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