summaryrefslogtreecommitdiff
path: root/gcc/cp
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-04 20:40:43 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2007-06-04 20:40:43 +0000
commitf12067791f9068fe77fc24941f7ff547a50e951d (patch)
tree5399c769f1b49e0b145a204130aab405ef5cce5b /gcc/cp
parent87eb1c28ca15375db9bf1e91bd48b70c7c5e3a96 (diff)
downloadgcc-f12067791f9068fe77fc24941f7ff547a50e951d.tar.gz
2007-06-04 Paolo Carlini <pcarlini@suse.de>
* call.c (convert_like_real): Remove pointless code. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125315 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r--gcc/cp/ChangeLog4
-rw-r--r--gcc/cp/call.c15
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 <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 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,