From 1834a310d060d55748ca38d4ae0482864c2047d8 Mon Sep 17 00:00:00 2001 From: Nathan James Date: Tue, 8 Nov 2022 12:22:50 +0000 Subject: [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 --- llvm/lib/Object/DXContainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Object/DXContainer.cpp') 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 static Error readInteger(StringRef Buffer, const char *Src, T &Val) { - static_assert(std::is_integral::value, + static_assert(std::is_integral_v, "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()) -- cgit v1.1