[all-commits] [llvm/llvm-project] 7b904b: [libc++] Remove assertions from <string_view> that...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Thu Aug 14 00:24:42 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7b904b09eb2368d8e3af77df4753a1068835db54
      https://github.com/llvm/llvm-project/commit/7b904b09eb2368d8e3af77df4753a1068835db54
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2025-08-14 (Thu, 14 Aug 2025)

  Changed paths:
    M libcxx/include/string_view
    M libcxx/test/libcxx/strings/string.view/assert.ctor.length.pass.cpp

  Log Message:
  -----------
  [libc++] Remove assertions from <string_view> that are unreachable (#148598)

When assertions are enabled it is impossible to construct a
`string_view` which contains a null pointer and a non-zero size, so
assertions where we check for that on an already constructed
`string_view` are unreachable.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list