Skip to content

Commit 6a04e2c

Browse files
committed
@b fix null ptr
1 parent c817133 commit 6a04e2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gcc/config/m68k/amigaos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ _m68k_function_arg (CUMULATIVE_ARGS *cump, machine_mode mode, const_tree type)
508508
/* FIXME: Two last conditions below are workarounds for bugs. */
509509
else if (INTEGRAL_MODE_P (mode) && mode != CQImode && mode != CHImode)
510510
{
511-
if (POINTER_TYPE_P(type))
511+
if (!type || POINTER_TYPE_P(type))
512512
regbegin = 8; /* Ax */
513513
else
514514
regbegin = 0; /* Dx */

0 commit comments

Comments
 (0)