[llvm] d709888 - [Support] Use std::is_scalar_v (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 13 23:50:15 PST 2022
Author: Kazu Hirata
Date: 2022-11-13T23:50:08-08:00
New Revision: d709888bdeeaa60b6f20ff6e1434f8550649d82d
URL: https://github.com/llvm/llvm-project/commit/d709888bdeeaa60b6f20ff6e1434f8550649d82d
DIFF: https://github.com/llvm/llvm-project/commit/d709888bdeeaa60b6f20ff6e1434f8550649d82d.diff
LOG: [Support] Use std::is_scalar_v (NFC)
Added:
Modified:
llvm/include/llvm/Support/Format.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/Format.h b/llvm/include/llvm/Support/Format.h
index 386f97488b5ca..4d336ab0a3660 100644
--- a/llvm/include/llvm/Support/Format.h
+++ b/llvm/include/llvm/Support/Format.h
@@ -132,7 +132,7 @@ class format_object_base {
template <typename... Args> struct validate_format_parameters;
template <typename Arg, typename... Args>
struct validate_format_parameters<Arg, Args...> {
- static_assert(std::is_scalar<Arg>::value,
+ static_assert(std::is_scalar_v<Arg>,
"format can't be used with non fundamental / non pointer type");
validate_format_parameters() { validate_format_parameters<Args...>(); }
};
More information about the llvm-commits
mailing list