c++: style tweak

At this point r == t, but it makes more sense to refer to t like all the
other cases do.

gcc/cp/ChangeLog:

	* constexpr.cc (cxx_eval_constant_expression): Pass t to get_value.

Signed-off-by: Nathaniel Shead <nathanieloshead@gmail.com>
This commit is contained in:
Nathaniel Shead 2023-07-13 17:40:10 -04:00 committed by Jason Merrill
parent 8d34414672
commit 12a1162072

View file

@ -7085,7 +7085,7 @@ cxx_eval_constant_expression (const constexpr_ctx *ctx, tree t,
case PARM_DECL:
if (lval && !TYPE_REF_P (TREE_TYPE (t)))
/* glvalue use. */;
else if (tree v = ctx->global->get_value (r))
else if (tree v = ctx->global->get_value (t))
r = v;
else if (lval)
/* Defer in case this is only used for its type. */;