* integrate.c (expand_inline_function): Add necessary check for NULL.
authorGavin Romig-Koch <gavin@cygnus.com>
Thu, 18 Nov 1999 15:12:51 +0000 (15:12 +0000)
committerGavin Romig-Koch <gavin@gcc.gnu.org>
Thu, 18 Nov 1999 15:12:51 +0000 (15:12 +0000)
From-SVN: r30575

gcc/ChangeLog
gcc/integrate.c

index 52af714..829318e 100644 (file)
@@ -1,3 +1,7 @@
+1999-11-18  Gavin Romig-Koch  <gavin@cygnus.com>
+
+       * integrate.c (expand_inline_function): Add necessary check for NULL.
+
 1999-11-18  Nick Clifton  <nickc@cygnus.com>
 
        * toplev.c (main): Correctly detect an unrecognised option.
index 30f9ed0..adf03cc 100644 (file)
@@ -1342,7 +1342,8 @@ expand_inline_function (fndecl, parms, target, ignore, type,
 
   /* If the function returns a BLKmode object in a register, copy it
      out of the temp register into a BLKmode memory object. */
-  if (TYPE_MODE (TREE_TYPE (TREE_TYPE (fndecl))) == BLKmode
+  if (target 
+      && TYPE_MODE (TREE_TYPE (TREE_TYPE (fndecl))) == BLKmode
       && ! aggregate_value_p (TREE_TYPE (TREE_TYPE (fndecl))))
     target = copy_blkmode_from_reg (0, target, TREE_TYPE (TREE_TYPE (fndecl)));