]> 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 595c58e70f5e73cdf68b776b43572902d62fe1cf..686004a5d320acf3a3190de8f660ac10fecd0219 100644 (file)
@@ -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 ());