diff options
author | Daniel Jacobowitz <drow@false.org> | 2001-12-07 22:16:43 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2001-12-07 22:16:43 +0000 |
commit | 2abae2c765a44abed1268d0778a157b2dd0df85d (patch) | |
tree | e6b069eaf0a39bbe68413e1e599c78d970abd8a5 /gdb/valops.c | |
parent | 76b2e19d24ee651cf2e555a1a03af008143226ff (diff) | |
download | binutils-gdb-2abae2c765a44abed1268d0778a157b2dd0df85d.tar.gz |
Undo accidental commit of a separate patch.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 736e0e2237a..980a98af54d 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -2639,13 +2639,12 @@ value_find_oload_method_list (value_ptr *argp, char *method, int offset, int find_overload_match (struct type **arg_types, int nargs, char *name, int method, - int lax, value_ptr *objp, struct symbol *fsym, + int lax, value_ptr obj, struct symbol *fsym, value_ptr *valp, struct symbol **symp, int *staticp) { int nparms; struct type **parm_types; int champ_nparms = 0; - struct value *obj = (objp ? *objp : NULL); short oload_champ = -1; /* Index of best overloaded function */ short oload_ambiguous = 0; /* Current ambiguity state for overload resolution */ @@ -2869,15 +2868,6 @@ find_overload_match (struct type **arg_types, int nargs, char *name, int method, xfree (func_name); } - if (objp) - { - if (TYPE_CODE (VALUE_TYPE (temp)) != TYPE_CODE_PTR - && TYPE_CODE (VALUE_TYPE (*objp)) == TYPE_CODE_PTR) - { - temp = value_addr (temp); - } - *objp = temp; - } return oload_incompatible ? 100 : (oload_non_standard ? 10 : 0); } |