[all-commits] [llvm/llvm-project] 862e71: Reland "Replace bool operator== for VersionType in...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Apr 10 19:05:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 862e7190c9d4672d3adf1bbde95b556c8e2d7544
      https://github.com/llvm/llvm-project/commit/862e7190c9d4672d3adf1bbde95b556c8e2d7544
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2025-04-10 (Thu, 10 Apr 2025)

  Changed paths:
    M compiler-rt/lib/sanitizer_common/sanitizer_mac.h

  Log Message:
  -----------
  Reland "Replace bool operator== for VersionType in sanitizer_mac.h" (#135276)

Fixes error: ISO C++20 considers use of overloaded operator '==' (with
operand types 'MacosVersion' and 'MacosVersion') to be ambiguous despite
there being a unique best viable function
[-Werror,-Wambiguous-reversed-operator].

This converts the comparison operator from a non-symmetric operator
(const VersionBase<VersionType>& (as "this") and const VersionType &).
into a symmetric operator

Relands #135068

Co-authored-by: Ivan Tadeu Ferreira Antunes Filho <antunesi at google.com>



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