Message ID | 20201025130921.20693-2-luc.vanoostenryck@gmail.com (mailing list archive) |
---|---|
State | Mainlined, archived |
Headers | show |
Series | fix testing if a OP_CALL's function is pure | expand |
diff --git a/lib.h b/lib.h index 0b1d4492e6bd..b4c3db93ab31 100644 --- a/lib.h +++ b/lib.h @@ -204,6 +204,11 @@ static inline pseudo_t first_pseudo(struct pseudo_list *head) return first_ptr_list((struct ptr_list *)head); } +static inline struct symbol *first_symbol(struct symbol_list *head) +{ + return first_ptr_list((struct ptr_list *)head); +} + static inline void concat_symbol_list(struct symbol_list *from, struct symbol_list **to) { concat_ptr_list((struct ptr_list *)from, (struct ptr_list **)to);
This is just a wrapper around first_ptr_list(). Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com> --- lib.h | 5 +++++ 1 file changed, 5 insertions(+)