PR c++/11326
authorschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Feb 2004 14:21:13 +0000 (14:21 +0000)
committerschwab <schwab@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 18 Feb 2004 14:21:13 +0000 (14:21 +0000)
* config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
fntype.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78028 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 8b1e566..49a4c26 100644 (file)
@@ -1,3 +1,9 @@
+2004-02-18  Mark Mitchell <mark@codesourcery.com>
+
+       PR c++/11326
+       * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
+       fntype.
+
 2004-02-18  Paul Brook  <paul@codesourcery.com>
 
        * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
index ffbb349..5e39e6e 100644 (file)
@@ -8978,7 +8978,7 @@ static rtx
 ia64_struct_value_rtx (tree fntype,
                       int incoming ATTRIBUTE_UNUSED)
 {
-  if (ia64_struct_retval_addr_is_first_parm_p (fntype))
+  if (fntype && ia64_struct_retval_addr_is_first_parm_p (fntype))
     return NULL_RTX;
   return gen_rtx_REG (Pmode, GR_REG (8));
 }