[NFC][ADT] Fix assert message

Reviewed By: gchatelet

Differential Revision: https://reviews.llvm.org/D129632
This commit is contained in:
theidexisted 2022-09-13 18:31:50 +00:00 committed by Guillaume Chatelet
parent c97952ee1e
commit 0a1c8522f3
1 changed files with 2 additions and 2 deletions

View File

@ -119,7 +119,7 @@ template <typename T, unsigned Bits> struct BitPatterns {
/// The `pack` method also checks that the passed in `UserValue` is valid.
template <typename T, unsigned Bits, bool = std::is_unsigned<T>::value>
struct Compressor {
static_assert(std::is_unsigned<T>::value, "T is unsigned");
static_assert(std::is_unsigned<T>::value, "T must be unsigned");
using BP = BitPatterns<T, Bits>;
static T pack(T UserValue, T UserMaxValue) {
@ -132,7 +132,7 @@ struct Compressor {
};
template <typename T, unsigned Bits> struct Compressor<T, Bits, false> {
static_assert(std::is_signed<T>::value, "T is signed");
static_assert(std::is_signed<T>::value, "T must be signed");
using BP = BitPatterns<T, Bits>;
static T pack(T UserValue, T UserMaxValue) {