[libcxx-commits] [libcxx] Suppress a redundant hardening check in basic_string_view::substr (PR #91804)

David Benjamin via libcxx-commits libcxx-commits at lists.llvm.org
Tue Jun 25 09:46:12 PDT 2024


davidben wrote:

> better tools

E.g., if we had infinite time to burn on compiler smarts, we could make some kind of `size_t [[clang::integer_bounds(0, PTRDIFF_MAX)]]`. Combine that with a fix for #91619 and I think the compiler could figure that out. But we don't have that right now. :-)

https://github.com/llvm/llvm-project/pull/91804


More information about the libcxx-commits mailing list