From: Nathaniel Shead Date: Thu, 13 Jul 2023 21:40:10 +0000 (-0400) Subject: c++: style tweak X-Git-Tag: basepoints/gcc-15~7603 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12a1162072eef9b6cdf07a3e3889def18a836221;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/cp/constexpr.cc b/gcc/cp/constexpr.cc index 9f96a6c41eaf..c6f323ebf43a 100644 --- a/gcc/cp/constexpr.cc +++ b/gcc/cp/constexpr.cc @@ -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. */;