From: Richard Henderson Date: Fri, 19 Apr 2002 03:59:51 +0000 (-0700) Subject: ia64.c (ia64_function_arg_pass_by_reference): Don't crash with no type for by-mode... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2840e66a788bf5d64db91f2817ea7e5336904cfb;p=gcc.git ia64.c (ia64_function_arg_pass_by_reference): Don't crash with no type for by-mode libcalls. * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't crash with no type for by-mode libcalls. From-SVN: r52508 --- diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index d628dea91af..4dd6229e239 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -3211,7 +3211,7 @@ ia64_function_arg_pass_by_reference (cum, mode, type, named) tree type; int named ATTRIBUTE_UNUSED; { - return TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST; + return type && TREE_CODE (TYPE_SIZE (type)) != INTEGER_CST; } /* Implement va_start. */