[all-commits] [llvm/llvm-project] 3e7452: [libc++] Avoid overload resolution in path compari...

Joseph Loser via All-commits all-commits at lists.llvm.org
Thu Nov 25 08:41:40 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3e7452a812fa06c5eaae7d089891489222417e92
      https://github.com/llvm/llvm-project/commit/3e7452a812fa06c5eaae7d089891489222417e92
  Author: Joe Loser <joeloser93 at gmail.com>
  Date:   2021-11-25 (Thu, 25 Nov 2021)

  Changed paths:
    M libcxx/include/filesystem

  Log Message:
  -----------
  [libc++] Avoid overload resolution in path comparison operators

Rework `std::filesystem::path::operator==` and friends to avoid overload
resolution and atomic constraint caching issues shown from
https://reviews.llvm.org/D113161.

Always call `__compare(string_view)` from the comparison operators which avoids
overload resolution.

Differential Revision: https://reviews.llvm.org/D114570




More information about the All-commits mailing list