[powerpc] crash trying to allocate memory in inferior
[binutils.git] / gdb / ppc-sysv-tdep.c
index e4313633c8d0cba2d91293aff45aa63e1e74c175..bda45446ac840cdd022b2e23e3cfe7b8a4a2333f 100644 (file)
@@ -692,6 +692,7 @@ do_ppc_sysv_return_value (struct gdbarch *gdbarch, struct type *func_type,
   int opencl_abi = 0;
 
   if (func_type
+      && TYPE_CODE (func_type) == TYPE_CODE_FUNC
       && TYPE_CALLING_CONVENTION (func_type) == DW_CC_GDB_IBM_OpenCL)
     opencl_abi = 1;
 
This page took 0.025145 seconds and 4 git commands to generate.