From: Nathan Sidwell Date: Tue, 2 Jan 2018 14:51:06 +0000 (+0000) Subject: [C++ PATCH] tiny code cleanup X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0e03860116aa0c55edc15fa25fdbf52369654d83;p=gcc.git [C++ PATCH] tiny code cleanup https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00041.html * constexpr.c (cxx_bind_parameters_in_call): Remove unneeded local lval var. From-SVN: r256075 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 20b0349b935..985f8716f74 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +2018-01-02 Nathan Sidwell + + * constexpr.c (cxx_bind_parameters_in_call): Remove unneeded local + lval var. + 2017-12-22 Mike Stump Eric Botcazou diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c index 25b19fa0229..23f5fcf3c81 100644 --- a/gcc/cp/constexpr.c +++ b/gcc/cp/constexpr.c @@ -1291,8 +1291,7 @@ cxx_bind_parameters_in_call (const constexpr_ctx *ctx, tree t, x = ctx->object; x = build_address (x); } - bool lval = false; - arg = cxx_eval_constant_expression (ctx, x, lval, + arg = cxx_eval_constant_expression (ctx, x, /*lval=*/false, non_constant_p, overflow_p); /* Don't VERIFY_CONSTANT here. */ if (*non_constant_p && ctx->quiet)