aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/DXContainer.cpp
diff options
context:
space:
mode:
authorNathan James <n.james93@hotmail.co.uk>2022-11-08 13:11:10 +0000
committerNathan James <n.james93@hotmail.co.uk>2022-11-08 13:11:41 +0000
commit632a389f96355cbe7ed8fa7b8d2ed6267c92457c (patch)
tree11459955fe1fbe372cb32dc3a262c837b811e9b6 /llvm/lib/Object/DXContainer.cpp
parent46d53f45d89b54d55304cfd7cd3d6c6232dbf529 (diff)
downloadllvm-632a389f96355cbe7ed8fa7b8d2ed6267c92457c.zip
llvm-632a389f96355cbe7ed8fa7b8d2ed6267c92457c.tar.gz
llvm-632a389f96355cbe7ed8fa7b8d2ed6267c92457c.tar.bz2
Revert "[llvm][NFC] Use c++17 style variable type traits"
This reverts commit 1834a310d060d55748ca38d4ae0482864c2047d8.
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 35a58ed..a83cf70 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_v<T>,
+ static_assert(std::is_integral<T>::value,
"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())