diff --git a/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h b/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h index d34473f03c8de..7a03405b4f462 100644 --- a/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h +++ b/llvm/include/llvm/Transforms/IPO/WholeProgramDevirt.h @@ -113,7 +113,7 @@ struct TypeMemberInfo { uint64_t Offset; bool operator<(const TypeMemberInfo &other) const { - return Bits < other.Bits || (Bits == other.Bits && Offset < other.Offset); + return std::tie(Bits, Offset) < std::tie(other.Bits, other.Offset); } };