diff --git a/include/llvm/Support/Endian.h b/include/llvm/Support/Endian.h index e9fe22e5eda..fd59009e0d3 100644 --- a/include/llvm/Support/Endian.h +++ b/include/llvm/Support/Endian.h @@ -104,6 +104,16 @@ struct packed_endian_specific_integral { return *this; } + packed_endian_specific_integral &operator|=(value_type newValue) { + *this = *this | newValue; + return *this; + } + + packed_endian_specific_integral &operator&=(value_type newValue) { + *this = *this & newValue; + return *this; + } + private: AlignedCharArray::value, sizeof(value_type)> Value;