]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* valops.c (find_overload_match): Use value_ind.
authorTom Tromey <tromey@redhat.com>
Fri, 15 Jun 2012 14:35:33 +0000 (14:35 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 15 Jun 2012 14:35:33 +0000 (14:35 +0000)
gdb/ChangeLog
gdb/valops.c

index 37148af337a4aab5595e2c93336f9287315d9085..cd28e9e01be9edc1c1956e32b089605174d147a6 100644 (file)
@@ -1,3 +1,7 @@
+2012-06-15  Tom Tromey  <tromey@redhat.com>
+
+       * valops.c (find_overload_match): Use value_ind.
+
 2012-06-15  Maciej W. Rozycki  <macro@codesourcery.com>
 
        * infrun.c (handle_inferior_event): Correct indentation.
index feb47f543b03ee8770b0857bc3c3b74d5409bb72..afec392103b2834354197869cf7300bcd6cd32b3 100644 (file)
@@ -2681,8 +2681,7 @@ find_overload_match (struct value **args, int nargs,
          and non member function, the first argument must now be
          dereferenced.  */
       if (method == BOTH)
-       deprecated_set_value_type (args[0],
-                                  TYPE_TARGET_TYPE (value_type (args[0])));
+       args[0] = value_ind (args[0]);
 
       if (fsym)
         {