[libcxx-commits] [libcxx] [libc++][hardening] Don't trigger redundant checks in the fast mode. (PR #77176)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Jan 9 13:29:23 PST 2024
================
@@ -152,8 +152,9 @@ class layout_left::mapping {
// return a value exceeding required_span_size(), which is used to know how large an allocation one needs
// Thus, this is a canonical point in multi-dimensional data structures to make invalid element access checks
// However, mdspan does check this on its own, so for now we avoid double checking in hardened mode
----------------
ldionne wrote:
```suggestion
// However, mdspan does check this on its own, so we avoid double checking in hardened mode
```
https://github.com/llvm/llvm-project/pull/77176
More information about the libcxx-commits
mailing list