]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/i386-windows-tdep.c
2.41 Release sources
[thirdparty/binutils-gdb.git] / gdb / i386-windows-tdep.c
index 4a9c5b3a192c734007c1f794d83b6047d3c8f492..686004a5d320acf3a3190de8f660ac10fecd0219 100644 (file)
@@ -1,7 +1,7 @@
 /* Target-dependent code for Windows (including Cygwin) running on i386's,
    for GDB.
 
-   Copyright (C) 2003-2022 Free Software Foundation, Inc.
+   Copyright (C) 2003-2023 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -114,7 +114,7 @@ i386_windows_push_dummy_call (struct gdbarch *gdbarch, struct value *function,
      calling convention is used, so the 'this' pointer is passed in ECX.  */
   bool thiscall = false;
 
-  struct type *type = check_typedef (value_type (function));
+  struct type *type = check_typedef (function->type ());
   if (type->code () == TYPE_CODE_PTR)
     type = check_typedef (type->target_type ());