tree-flow-inline.h (num_immediate_uses): Don't abort if DF is NULL.
authorDiego Novillo <dnovillo@redhat.com>
Fri, 21 May 2004 15:24:54 +0000 (15:24 +0000)
committerDiego Novillo <dnovillo@gcc.gnu.org>
Fri, 21 May 2004 15:24:54 +0000 (11:24 -0400)
* tree-flow-inline.h (num_immediate_uses): Don't abort if DF
is NULL.

From-SVN: r82099

gcc/ChangeLog
gcc/tree-flow-inline.h

index b1645a82b2aeed7ee6ee01d8e5c6b32b57944b1d..c6fd5c7febc2aa80196dd1ae866ede6c4bbdfcf1 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-21  Diego Novillo  <dnovillo@redhat.com>
+
+       * tree-flow-inline.h (num_immediate_uses): Don't abort if DF
+       is NULL.
+
 2004-05-21  Jakub Jelinek  <jakub@redhat.com>
 
        * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH,
index 3505b0c4f19e5919f0a8c211bf2ca636f908d06d..be997d0849973211bb07e053627f2548d7c5bf49 100644 (file)
@@ -295,6 +295,9 @@ num_immediate_uses (dataflow_t df)
 static inline tree
 immediate_use (dataflow_t df, int num)
 {
+  if (!df)
+    return NULL_TREE;
+
 #ifdef ENABLE_CHECKING
   if (num >= num_immediate_uses (df))
     abort ();