From cab203bf5d36879823ea4623a1df8b0b322c9e00 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Mon, 4 Jun 2007 20:40:43 +0000 Subject: [PATCH] call.c (convert_like_real): Remove pointless code. 2007-06-04 Paolo Carlini * call.c (convert_like_real): Remove pointless code. From-SVN: r125315 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/call.c | 15 --------------- 2 files changed, 4 insertions(+), 15 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ec1492818c9..a3fc7746a0b 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2007-06-04 Paolo Carlini + + * call.c (convert_like_real): Remove pointless code. + 2007-05-31 Mark Mitchell * decl.c (get_atexit_fn_ptr_type): New function. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index bf565fcb5eb..deae301882c 100644 --- a/gcc/cp/call.c +++ b/gcc/cp/call.c @@ -4358,22 +4358,7 @@ convert_like_real (conversion *convs, tree expr, tree fn, int argnum, { struct z_candidate *cand = convs->cand; tree convfn = cand->fn; - tree args; - if (DECL_CONSTRUCTOR_P (convfn)) - { - tree t = build_int_cst (build_pointer_type (DECL_CONTEXT (convfn)), - 0); - - args = build_tree_list (NULL_TREE, expr); - /* We should never try to call the abstract or base constructor - from here. */ - gcc_assert (!DECL_HAS_IN_CHARGE_PARM_P (convfn) - && !DECL_HAS_VTT_PARM_P (convfn)); - args = tree_cons (NULL_TREE, t, args); - } - else - args = build_this (expr); expr = build_over_call (cand, LOOKUP_NORMAL); /* If this is a constructor or a function returning an aggr type,