ia64.c (ia64_function_arg_pass_by_reference): Don't crash with no type for by-mode...
authorRichard Henderson <rth@gcc.gnu.org>
Fri, 19 Apr 2002 03:59:51 +0000 (20:59 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Fri, 19 Apr 2002 03:59:51 +0000 (20:59 -0700)
        * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
        crash with no type for by-mode libcalls.

From-SVN: r52508

gcc/config/ia64/ia64.c

index d628dea..4dd6229 100644 (file)
@@ -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;
 }
 \f
 /* Implement va_start.  */