Commit 99e4ed78 by Jakub Jelinek Committed by Jakub Jelinek

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.

From-SVN: r273149
parent 9eb5f744
2019-07-05 Jakub Jelinek <jakub@redhat.com>
PR c++/67184
PR c++/69445
* call.c (build_new_method_call_1): Remove set but not used variable
binfo.
2019-07-05 Paolo Carlini <paolo.carlini@oracle.com> 2019-07-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/67184 (again) PR c++/67184 (again)
......
...@@ -9564,7 +9564,7 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args, ...@@ -9564,7 +9564,7 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
struct z_candidate *candidates = 0, *cand; struct z_candidate *candidates = 0, *cand;
tree explicit_targs = NULL_TREE; tree explicit_targs = NULL_TREE;
tree basetype = NULL_TREE; tree basetype = NULL_TREE;
tree access_binfo, binfo; tree access_binfo;
tree optype; tree optype;
tree first_mem_arg = NULL_TREE; tree first_mem_arg = NULL_TREE;
tree name; tree name;
...@@ -9603,7 +9603,6 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args, ...@@ -9603,7 +9603,6 @@ build_new_method_call_1 (tree instance, tree fns, vec<tree, va_gc> **args,
if (!conversion_path) if (!conversion_path)
conversion_path = BASELINK_BINFO (fns); conversion_path = BASELINK_BINFO (fns);
access_binfo = BASELINK_ACCESS_BINFO (fns); access_binfo = BASELINK_ACCESS_BINFO (fns);
binfo = BASELINK_BINFO (fns);
optype = BASELINK_OPTYPE (fns); optype = BASELINK_OPTYPE (fns);
fns = BASELINK_FUNCTIONS (fns); fns = BASELINK_FUNCTIONS (fns);
if (TREE_CODE (fns) == TEMPLATE_ID_EXPR) if (TREE_CODE (fns) == TEMPLATE_ID_EXPR)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment