aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
diff options
context:
space:
mode:
authorNathan James <n.james93@hotmail.co.uk>2022-11-08 14:15:04 +0000
committerNathan James <n.james93@hotmail.co.uk>2022-11-08 14:15:15 +0000
commit6aa050a69041e610587c51032fa477dd3d6da787 (patch)
treef057eff2f7484ae183f975b2fb70e2580e546f4d /llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
parent281f2134a730f147428d75c09a28f0c5e1be95d9 (diff)
downloadllvm-6aa050a69041e610587c51032fa477dd3d6da787.zip
llvm-6aa050a69041e610587c51032fa477dd3d6da787.tar.gz
llvm-6aa050a69041e610587c51032fa477dd3d6da787.tar.bz2
Reland "[llvm][NFC] Use c++17 style variable type traits"
This reverts commit 632a389f96355cbe7ed8fa7b8d2ed6267c92457c. This relands commit 1834a310d060d55748ca38d4ae0482864c2047d8. Differential Revision: https://reviews.llvm.org/D137493
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
index 32e07eb..7706b3f 100644
--- a/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
+++ b/llvm/lib/CodeGen/LiveDebugValues/VarLocBasedImpl.cpp
@@ -237,8 +237,7 @@ struct LocIndex {
}
template<typename IntT> static LocIndex fromRawInteger(IntT ID) {
- static_assert(std::is_unsigned<IntT>::value &&
- sizeof(ID) == sizeof(uint64_t),
+ static_assert(std::is_unsigned_v<IntT> && sizeof(ID) == sizeof(uint64_t),
"Cannot convert raw integer to LocIndex");
return {static_cast<u32_location_t>(ID >> 32),
static_cast<u32_index_t>(ID)};