diff options
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index 56edae9..066e9ad 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -511,6 +511,15 @@ phi_nodes (const_basic_block bb) return bb->il.gimple->phi_nodes; } +static inline gimple_seq * +phi_nodes_ptr (const_basic_block bb) +{ + gcc_checking_assert (!(bb->flags & BB_RTL)); + if (!bb->il.gimple) + return NULL; + return &bb->il.gimple->phi_nodes; +} + /* Set PHI nodes of a basic block BB to SEQ. */ static inline void |