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:
parent
8d34414672
commit
12a1162072
1 changed files with 1 additions and 1 deletions
|
@ -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. */;
|
||||
|
|
Loading…
Add table
Reference in a new issue