[PATCH] D129632: [NFC][ADT] Fix assert message
ppenguin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 13 03:52:06 PDT 2022
prehistoric-penguin created this revision.
Herald added a project: All.
prehistoric-penguin requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D129632
Files:
llvm/include/llvm/ADT/Bitfields.h
Index: llvm/include/llvm/ADT/Bitfields.h
===================================================================
--- llvm/include/llvm/ADT/Bitfields.h
+++ llvm/include/llvm/ADT/Bitfields.h
@@ -119,7 +119,7 @@
/// 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 @@
};
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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129632.444208.patch
Type: text/x-patch
Size: 901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220713/e74ef642/attachment.bin>
More information about the llvm-commits
mailing list