diff options
author | Nathan James <n.james93@hotmail.co.uk> | 2022-11-07 18:25:46 +0000 |
---|---|---|
committer | Nathan James <n.james93@hotmail.co.uk> | 2022-11-07 18:25:48 +0000 |
commit | 108e41d962463ea1cb956d1a929692a5b49c0a80 (patch) | |
tree | b80540f94aa4366e4dbef3aea2ad4b388dd22b07 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 89ddcff1d2d6e9f4de78f3a563a8b1987bf7ea8f (diff) | |
download | llvm-108e41d962463ea1cb956d1a929692a5b49c0a80.zip llvm-108e41d962463ea1cb956d1a929692a5b49c0a80.tar.gz llvm-108e41d962463ea1cb956d1a929692a5b49c0a80.tar.bz2 |
[clang][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: shafik
Differential Revision: https://reviews.llvm.org/D137491
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | clang/lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index 6b88080..b004c6c 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -199,8 +199,7 @@ static void denormalizeSimpleFlag(SmallVectorImpl<const char *> &Args, } template <typename T> static constexpr bool is_uint64_t_convertible() { - return !std::is_same<T, uint64_t>::value && - llvm::is_integral_or_enum<T>::value; + return !std::is_same_v<T, uint64_t> && llvm::is_integral_or_enum<T>::value; } template <typename T, |