diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h --- a/llvm/include/llvm/ADT/APInt.h +++ b/llvm/include/llvm/ADT/APInt.h @@ -2027,9 +2027,11 @@ /// @} }; +#if !(__cplusplus > 201703L && __cpp_impl_three_way_comparison >= 201907L) inline bool operator==(uint64_t V1, const APInt &V2) { return V2 == V1; } inline bool operator!=(uint64_t V1, const APInt &V2) { return V2 != V1; } +#endif /// Unary bitwise complement operator. ///