[all-commits] [llvm/llvm-project] 5cfb07: Revert "[ADT] Use std::string_view inside StringRe...

Kazu Hirata via All-commits all-commits at lists.llvm.org
Tue Oct 29 14:47:12 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5cfb07a5d067f7729a1578c7272fb314a89c8596
      https://github.com/llvm/llvm-project/commit/5cfb07a5d067f7729a1578c7272fb314a89c8596
  Author: Kazu Hirata <kazu at google.com>
  Date:   2024-10-29 (Tue, 29 Oct 2024)

  Changed paths:
    M llvm/include/llvm/ADT/StringRef.h

  Log Message:
  -----------
  Revert "[ADT] Use std::string_view inside StringRef (#113775)" (#114133)

This patch reverts commit 89b5d88fb81362b4fb2f833790aa40b7eaa186da.

Some sanitizer failures have been reported, indicating that StringRef
and std::string_view handle data == nulptr differently.  Also, they
support different values for the max size (size_t v.s. ptrdiff_t).

Thanks goes to Jorge Gorbe Moya for reporting these.



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