aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-09-18 18:41:02 -0700
committerKazu Hirata <kazu@google.com>2022-09-18 18:41:02 -0700
commit207835064514e968e40685bdc48b7bb0fc5c2779 (patch)
tree77fad3eba76b2404797234f0e7890e62732576bb /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
parent8dab452740007e03c963b349e716068eac2b25a0 (diff)
downloadllvm-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.cpp2
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;
}