You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BoundsSafety][-Wunsafe-buffer-usage] Add a safe pattern of span construction from bounds-attributed pointers (#9746) (#10027)
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)
0 commit comments