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/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp') diff --git a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp index 5fec847..d3760a9a 100644 --- a/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp +++ b/llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp @@ -256,8 +256,8 @@ public: "This test makes sure NewArchiveMemberList is used by MembersData since " "the following asserts test invariants required for MembersData."); static_assert( - !std::is_copy_constructible< - decltype(NewArchiveMemberList::Members)::value_type>::value, + !std::is_copy_constructible_v< + decltype(NewArchiveMemberList::Members)::value_type>, "MembersData::MembersPerArchitecture has a dependency on " "MembersData::FileBuffers so it should not be able to " "be copied on its own without FileBuffers. Unfortunately, " @@ -265,8 +265,8 @@ public: "of a non-copyable type is itself non-copyable so we have to test the " "actual type of the stored data (ie, value_type)."); static_assert( - !std::is_copy_assignable< - decltype(NewArchiveMemberList::Members)::value_type>::value, + !std::is_copy_assignable_v< + decltype(NewArchiveMemberList::Members)::value_type>, "MembersData::MembersPerArchitecture has a dependency on " "MembersData::FileBuffers so it should not be able to " "be copied on its own without FileBuffers. Unfortunately, " -- cgit v1.1