mirror of
https://forge.sourceware.org/marek/gcc.git
synced 2026-02-22 03:47:02 -05:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user