public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r9-10161] re PR c++/67184 (Missed optimization with C++11 final specifier)
@ 2022-05-13 17:40 Jason Merrill
  0 siblings, 0 replies; only message in thread
From: Jason Merrill @ 2022-05-13 17:40 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:30a100abe48cebcdf3d685e856850d4192f05ad9

commit r9-10161-g30a100abe48cebcdf3d685e856850d4192f05ad9
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Fri Jul 5 22:51:44 2019 +0200

    re PR c++/67184 (Missed optimization with C++11 final specifier)
    
            PR c++/67184
            PR c++/69445
            * call.c (build_new_method_call_1): Remove set but not used variable
            binfo.

Diff:
---
 gcc/cp/call.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index 9745b484a0e..1110e49c62c 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -9644,7 +9644,7 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
   struct z_candidate *candidates = 0, *cand;
   tree explicit_targs = NULL_TREE;
   tree basetype = NULL_TREE;
-  tree access_binfo, binfo;
+  tree access_binfo;
   tree optype;
   tree first_mem_arg = NULL_TREE;
   tree name;
@@ -9683,7 +9683,6 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
   if (!conversion_path)
     conversion_path = BASELINK_BINFO (fns);
   access_binfo = BASELINK_ACCESS_BINFO (fns);
-  binfo = BASELINK_BINFO (fns);
   optype = BASELINK_OPTYPE (fns);
   fns = BASELINK_FUNCTIONS (fns);
   if (TREE_CODE (fns) == TEMPLATE_ID_EXPR)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-05-13 17:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-13 17:40 [gcc r9-10161] re PR c++/67184 (Missed optimization with C++11 final specifier) Jason Merrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).