[all-commits] [llvm/llvm-project] cce1fe: [libc++][NFC] Remove some dead code in string (#94...

Nikolas Klauser via All-commits all-commits at lists.llvm.org
Tue Jun 11 13:58:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cce1feb7b1caf6bd5fab311a787481a3f6a9dcdf
      https://github.com/llvm/llvm-project/commit/cce1feb7b1caf6bd5fab311a787481a3f6a9dcdf
  Author: Nikolas Klauser <nikolasklauser at berlin.de>
  Date:   2024-06-11 (Tue, 11 Jun 2024)

  Changed paths:
    M libcxx/include/string

  Log Message:
  -----------
  [libc++][NFC] Remove some dead code in string (#94893)

It looks like the last references got removed in c747bd0e2339.
It removed a __zero() function, which was probably created at
some point in the ancient past to optimize copying the string 
representation. The __zero() function got simplified to an 
assignment as part of making string constexpr, rendering this 
code unnecessary.



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