From e54d02140051c9fe0ccddf982aa1d7b29d7c3263 Mon Sep 17 00:00:00 2001 From: Diego Novillo Date: Fri, 21 May 2004 15:24:54 +0000 Subject: [PATCH] tree-flow-inline.h (num_immediate_uses): Don't abort if DF is NULL. * tree-flow-inline.h (num_immediate_uses): Don't abort if DF is NULL. From-SVN: r82099 --- gcc/ChangeLog | 5 +++++ gcc/tree-flow-inline.h | 3 +++ 2 files changed, 8 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b1645a82b2a..c6fd5c7febc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-05-21 Diego Novillo + + * tree-flow-inline.h (num_immediate_uses): Don't abort if DF + is NULL. + 2004-05-21 Jakub Jelinek * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): If SPARC_BI_ARCH, diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 3505b0c4f19..be997d08499 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -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 (); -- 2.30.2