diff options
author | Nathan James <n.james93@hotmail.co.uk> | 2022-11-08 12:22:50 +0000 |
---|---|---|
committer | Nathan James <n.james93@hotmail.co.uk> | 2022-11-08 12:22:52 +0000 |
commit | 1834a310d060d55748ca38d4ae0482864c2047d8 (patch) | |
tree | 79ab63f0548b07d61a75dd909731ca7a6ecc17b1 /llvm/unittests/ADT/SmallVectorTest.cpp | |
parent | 94738a5ac34283bb034b022602b9f9e93d67081f (diff) | |
download | llvm-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/unittests/ADT/SmallVectorTest.cpp')
-rw-r--r-- | llvm/unittests/ADT/SmallVectorTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/ADT/SmallVectorTest.cpp b/llvm/unittests/ADT/SmallVectorTest.cpp index e7ac9c0..62e6f433 100644 --- a/llvm/unittests/ADT/SmallVectorTest.cpp +++ b/llvm/unittests/ADT/SmallVectorTest.cpp @@ -1229,7 +1229,7 @@ protected: VectorT V; template <class T> static bool isValueType() { - return std::is_same<T, typename VectorT::value_type>::value; + return std::is_same_v<T, typename VectorT::value_type>; } void SetUp() override { |