diff options
author | Paolo Carlini <pcarlini@suse.de> | 2007-06-04 20:40:43 +0000 |
---|---|---|
committer | Paolo Carlini <paolo@gcc.gnu.org> | 2007-06-04 20:40:43 +0000 |
commit | cab203bf5d36879823ea4623a1df8b0b322c9e00 (patch) | |
tree | 5399c769f1b49e0b145a204130aab405ef5cce5b | |
parent | 8de7ef2a878969f8c5c627d3e9867ded91aa64fc (diff) | |
download | gcc-cab203bf5d36879823ea4623a1df8b0b322c9e00.zip gcc-cab203bf5d36879823ea4623a1df8b0b322c9e00.tar.gz gcc-cab203bf5d36879823ea4623a1df8b0b322c9e00.tar.bz2 |
call.c (convert_like_real): Remove pointless code.
2007-06-04 Paolo Carlini <pcarlini@suse.de>
* call.c (convert_like_real): Remove pointless code.
From-SVN: r125315
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/call.c | 15 |
2 files changed, 4 insertions, 15 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ec14928..a3fc774 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2007-06-04 Paolo Carlini <pcarlini@suse.de> + + * call.c (convert_like_real): Remove pointless code. + 2007-05-31 Mark Mitchell <mark@codesourcery.com> * decl.c (get_atexit_fn_ptr_type): New function. diff --git a/gcc/cp/call.c b/gcc/cp/call.c index bf565fc..deae301 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, |