[C++ PATCH] tiny code cleanup
authorNathan Sidwell <nathan@acm.org>
Tue, 2 Jan 2018 14:51:06 +0000 (14:51 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Tue, 2 Jan 2018 14:51:06 +0000 (14:51 +0000)
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

gcc/cp/ChangeLog
gcc/cp/constexpr.c

index 20b0349b93579958533b58ee12b2eff02df7585b..985f8716f7497c9f4cec93edc7cafba9100bdf9e 100644 (file)
@@ -1,3 +1,8 @@
+2018-01-02  Nathan Sidwell  <nathan@acm.org>
+
+       * constexpr.c (cxx_bind_parameters_in_call): Remove unneeded local
+       lval var.
+
 2017-12-22  Mike Stump  <mikestump@comcast.net>
             Eric Botcazou  <ebotcazou@adacore.com>
 
index 25b19fa02290d9c19694db9c158bbcdf550e5432..23f5fcf3c81b9cc0ab103231070f3b7ff246481f 100644 (file)
@@ -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)