aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/DXContainer.cpp
diff options
context:
space:
mode:
authorNathan James <n.james93@hotmail.co.uk>2022-11-08 12:22:50 +0000
committerNathan James <n.james93@hotmail.co.uk>2022-11-08 12:22:52 +0000
commit1834a310d060d55748ca38d4ae0482864c2047d8 (patch)
tree79ab63f0548b07d61a75dd909731ca7a6ecc17b1 /llvm/lib/Object/DXContainer.cpp
parent94738a5ac34283bb034b022602b9f9e93d67081f (diff)
downloadllvm-1834a310d060d55748ca38d4ae0482864c2047d8.zip
llvm-1834a310d060d55748ca38d4ae0482864c2047d8.tar.gz
llvm-1834a310d060d55748ca38d4ae0482864c2047d8.tar.bz2
[llvm][NFC] Use c++17 style variable type traits
This was done as a test for D137302 and it makes sense to push these changes Reviewed By: dblaikie Differential Revision: https://reviews.llvm.org/D137493
Diffstat (limited to 'llvm/lib/Object/DXContainer.cpp')
-rw-r--r--llvm/lib/Object/DXContainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Object/DXContainer.cpp b/llvm/lib/Object/DXContainer.cpp
index a83cf70..35a58ed 100644
--- a/llvm/lib/Object/DXContainer.cpp
+++ b/llvm/lib/Object/DXContainer.cpp
@@ -32,7 +32,7 @@ static Error readStruct(StringRef Buffer, const char *Src, T &Struct) {
template <typename T>
static Error readInteger(StringRef Buffer, const char *Src, T &Val) {
- static_assert(std::is_integral<T>::value,
+ static_assert(std::is_integral_v<T>,
"Cannot call readInteger on non-integral type.");
// Don't read before the beginning or past the end of the file
if (Src < Buffer.begin() || Src + sizeof(T) > Buffer.end())