Remove a few strip_typedefs

In general this shouldn't be necessary with finish_library_value_trait,
coerce_template_parms will canonicalize template args.
This commit is contained in:
Marek Polacek
2026-01-09 14:02:49 -05:00
parent 0fb6ece9fa
commit 72fadb13da

View File

@@ -5416,8 +5416,6 @@ eval_tuple_size (location_t loc, const constexpr_ctx *ctx, tree type,
tree call, bool *non_constant_p, tree *jump_target,
tree fun)
{
type = strip_typedefs (type);
/* Create std::tuple_size<TYPE>::value. */
tree args = make_tree_vec (1);
TREE_VEC_ELT (args, 0) = type;
@@ -5435,7 +5433,6 @@ eval_tuple_element (location_t loc, const constexpr_ctx *ctx, tree i,
tree type, tree call, bool *non_constant_p,
tree *jump_target, tree fun)
{
type = strip_typedefs (type);
/* Create std::tuple_element<I,TYPE>::type. */
tree args = make_tree_vec (2);
TREE_VEC_ELT (args, 0) = i;
@@ -5454,8 +5451,6 @@ eval_variant_size (location_t loc, const constexpr_ctx *ctx, tree type,
tree call, bool *non_constant_p, tree *jump_target,
tree fun)
{
type = strip_typedefs (type);
/* Create std::variant_size<TYPE>::value. */
tree args = make_tree_vec (1);
TREE_VEC_ELT (args, 0) = type;
@@ -5473,7 +5468,6 @@ eval_variant_alternative (location_t loc, const constexpr_ctx *ctx, tree i,
tree type, tree call, bool *non_constant_p,
tree *jump_target, tree fun)
{
type = strip_typedefs (type);
/* Create std::variant_alternative<I,TYPE>::type. */
tree args = make_tree_vec (2);
TREE_VEC_ELT (args, 0) = i;