diff options
author | Kazu Hirata <kazu@google.com> | 2022-09-18 18:41:02 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2022-09-18 18:41:02 -0700 |
commit | 207835064514e968e40685bdc48b7bb0fc5c2779 (patch) | |
tree | 77fad3eba76b2404797234f0e7890e62732576bb /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | |
parent | 8dab452740007e03c963b349e716068eac2b25a0 (diff) | |
download | llvm-207835064514e968e40685bdc48b7bb0fc5c2779.zip llvm-207835064514e968e40685bdc48b7bb0fc5c2779.tar.gz llvm-207835064514e968e40685bdc48b7bb0fc5c2779.tar.bz2 |
Use std::make_unsigned_t (NFC)
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp index 7ee15fd7..c2c01d1 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp @@ -772,7 +772,7 @@ template <typename T, typename U> static void fill_clamp(T &dest, U src, typename T::value_type fallback) { static_assert(std::is_unsigned<typename T::value_type>::value, "Destination type must be unsigned."); - using UU = typename std::make_unsigned<U>::type; + using UU = std::make_unsigned_t<U>; constexpr auto T_max = std::numeric_limits<typename T::value_type>::max(); dest = src >= 0 && static_cast<UU>(src) <= T_max ? src : fallback; } |