aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-11-26 12:09:24 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:04:57 -0700
commit05f35ab2b4c7a464851090085cf13d39ef22e854 (patch)
tree67e3c3f1106fc7ac2ab7aca1994b28e6b8d416a8 /simplify.c
parentMake the CSE "repeat" logic be more fine-grained than just (diff)
downloadsparse-05f35ab2b4c7a464851090085cf13d39ef22e854.tar.gz
sparse-05f35ab2b4c7a464851090085cf13d39ef22e854.tar.bz2
sparse-05f35ab2b4c7a464851090085cf13d39ef22e854.zip
Clean up the tests for "pseudo has use list", since add/remove
has to agree on it or bad things happen.
Diffstat (limited to 'simplify.c')
-rw-r--r--simplify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplify.c b/simplify.c
index 2a63fb0..e48e455 100644
--- a/simplify.c
+++ b/simplify.c
@@ -148,7 +148,7 @@ static int clean_up_phi(struct instruction *insn)
static inline void remove_usage(pseudo_t p, pseudo_t *usep)
{
- if (p && p->type != PSEUDO_VOID && p->type != PSEUDO_VAL) {
+ if (has_use_list(p)) {
int deleted;
deleted = delete_ptr_list_entry((struct ptr_list **)&p->users, usep);
assert(deleted == 1);