[PATCH] D129632: [NFC][ADT] Fix assert message
Guillaume Chatelet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 13 11:56:23 PDT 2022
This revision was automatically updated to reflect the committed changes.
Closed by commit rG0a1c8522f3f6: [NFC][ADT] Fix assert message (authored by theidexisted <invalid_ms_user at live.com>, committed by gchatelet).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129632/new/
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.459834.patch
Type: text/x-patch
Size: 901 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220913/6825bf55/attachment.bin>
More information about the llvm-commits
mailing list