diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-12-10 10:47:33 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:05:51 -0700 |
| commit | 92b590207d37078181c2d4738b990cc387d40006 (patch) | |
| tree | 0fa0bae01665cd2aa84722aed6dc7b6a4bcda2da | |
| parent | 105f3530d45906ff3789447182bd0d8853eff800 (diff) | |
| download | sparse-dev-92b590207d37078181c2d4738b990cc387d40006.tar.gz | |
Make "remove_pseudo()" return whether it removed a pseudo from
the list or not.
| -rw-r--r-- | linearize.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linearize.h b/linearize.h index 5ee634a0..76d275a0 100644 --- a/linearize.h +++ b/linearize.h @@ -217,9 +217,9 @@ static inline void *add_pseudo(struct pseudo_list **list, struct pseudo *pseudo) return add_ptr_list(list, pseudo); } -static inline void remove_pseudo(struct pseudo_list **list, pseudo_t pseudo) +static inline int remove_pseudo(struct pseudo_list **list, pseudo_t pseudo) { - delete_ptr_list_entry((struct ptr_list **)list, pseudo, 0); + return delete_ptr_list_entry((struct ptr_list **)list, pseudo, 0) != 0; } static inline int bb_terminated(struct basic_block *bb) |
