aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2022-08-20 23:00:39 -0700
committerKazu Hirata <kazu@google.com>2022-08-20 23:00:39 -0700
commit8b1b0d1d81213d10e6add52d93d0afd71baf6a04 (patch)
tree2445d4bf2dcf0aca8574cf10736c44b4f8218496 /clang/lib/Frontend/CompilerInvocation.cpp
parentc5da37e42d388947a40654b7011f2a820ec51601 (diff)
downloadllvm-8b1b0d1d81213d10e6add52d93d0afd71baf6a04.zip
llvm-8b1b0d1d81213d10e6add52d93d0afd71baf6a04.tar.gz
llvm-8b1b0d1d81213d10e6add52d93d0afd71baf6a04.tar.bz2
Revert "Use std::is_same_v instead of std::is_same (NFC)"
This reverts commit c5da37e42d388947a40654b7011f2a820ec51601. This patch seems to break builds with some versions of MSVC.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 79d9dcd..9731d40 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -197,7 +197,8 @@ static void denormalizeSimpleFlag(SmallVectorImpl<const char *> &Args,
}
template <typename T> static constexpr bool is_uint64_t_convertible() {
- return !std::is_same_v<T, uint64_t> && llvm::is_integral_or_enum<T>::value;
+ return !std::is_same<T, uint64_t>::value &&
+ llvm::is_integral_or_enum<T>::value;
}
template <typename T,