diff --git a/llvm/include/llvm/ADT/MapVector.h b/llvm/include/llvm/ADT/MapVector.h index c4e5c7e2bac51..27232c256d166 100644 --- a/llvm/include/llvm/ADT/MapVector.h +++ b/llvm/include/llvm/ADT/MapVector.h @@ -39,7 +39,7 @@ class MapVector { VectorType Vector; static_assert( - std::is_integral::value, + std::is_integral_v, "The mapped_type of the specified Map must be an integral type"); public: diff --git a/llvm/include/llvm/Support/BinaryStreamReader.h b/llvm/include/llvm/Support/BinaryStreamReader.h index 6853df3ccab18..056d2a5036d6a 100644 --- a/llvm/include/llvm/Support/BinaryStreamReader.h +++ b/llvm/include/llvm/Support/BinaryStreamReader.h @@ -66,7 +66,7 @@ class BinaryStreamReader { /// \returns a success error code if the data was successfully read, otherwise /// returns an appropriate error code. template Error readInteger(T &Dest) { - static_assert(std::is_integral::value, + static_assert(std::is_integral_v, "Cannot call readInteger with non-integral value!"); ArrayRef Bytes; diff --git a/llvm/include/llvm/Support/BinaryStreamWriter.h b/llvm/include/llvm/Support/BinaryStreamWriter.h index ce7af3650f529..d3d5edbf69e52 100644 --- a/llvm/include/llvm/Support/BinaryStreamWriter.h +++ b/llvm/include/llvm/Support/BinaryStreamWriter.h @@ -56,7 +56,7 @@ class BinaryStreamWriter { /// \returns a success error code if the data was successfully written, /// otherwise returns an appropriate error code. template Error writeInteger(T Value) { - static_assert(std::is_integral::value, + static_assert(std::is_integral_v, "Cannot call writeInteger with non-integral value!"); uint8_t Buffer[sizeof(T)]; llvm::support::endian::write(