[llvm] c6fa574 - [ADT] Remove redundant typename (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 24 00:15:02 PDT 2022
Author: Kazu Hirata
Date: 2022-10-24T00:14:56-07:00
New Revision: c6fa574f30542f65c6ee67d6e26ec65d6eea99a9
URL: https://github.com/llvm/llvm-project/commit/c6fa574f30542f65c6ee67d6e26ec65d6eea99a9
DIFF: https://github.com/llvm/llvm-project/commit/c6fa574f30542f65c6ee67d6e26ec65d6eea99a9.diff
LOG: [ADT] Remove redundant typename (NFC)
Added:
Modified:
llvm/include/llvm/ADT/TypeSwitch.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/TypeSwitch.h b/llvm/include/llvm/ADT/TypeSwitch.h
index cc69f76594a2..cf58808eb485 100644
--- a/llvm/include/llvm/ADT/TypeSwitch.h
+++ b/llvm/include/llvm/ADT/TypeSwitch.h
@@ -72,8 +72,8 @@ template <typename DerivedT, typename T> class TypeSwitchBase {
template <typename CastT, typename ValueT>
static auto castValue(
ValueT value,
- typename std::enable_if_t<
- is_detected<has_dyn_cast_t, ValueT, CastT>::value> * = nullptr) {
+ std::enable_if_t<is_detected<has_dyn_cast_t, ValueT, CastT>::value> * =
+ nullptr) {
return value.template dyn_cast<CastT>();
}
@@ -82,8 +82,8 @@ template <typename DerivedT, typename T> class TypeSwitchBase {
template <typename CastT, typename ValueT>
static auto castValue(
ValueT value,
- typename std::enable_if_t<
- !is_detected<has_dyn_cast_t, ValueT, CastT>::value> * = nullptr) {
+ std::enable_if_t<!is_detected<has_dyn_cast_t, ValueT, CastT>::value> * =
+ nullptr) {
return dyn_cast<CastT>(value);
}
More information about the llvm-commits
mailing list