diff --git a/flang/include/flang/Parser/openmp-utils.h b/flang/include/flang/Parser/openmp-utils.h index b72164e6cef4b..b7d990c9e75d6 100644 --- a/flang/include/flang/Parser/openmp-utils.h +++ b/flang/include/flang/Parser/openmp-utils.h @@ -67,17 +67,7 @@ struct DirectiveNameScope { template static OmpDirectiveName GetOmpDirectiveName(const T &x) { if constexpr (WrapperTrait) { - if constexpr (std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v || - std::is_same_v) { - return x.v.DirName(); - } else { - return GetOmpDirectiveName(x.v); - } + return GetOmpDirectiveName(x.v); } else if constexpr (TupleTrait) { if constexpr (std::is_base_of_v) { return std::get(x.t).DirName();