diff options
author | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-31 03:01:17 +0000 |
---|---|---|
committer | dberlin <dberlin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-10-31 03:01:17 +0000 |
commit | 8cbee12e8fba0d19e93a003780a47c5217322293 (patch) | |
tree | 34c98264abab39b8f7ee99086154c5118ff169f9 /gcc/bitmap.c | |
parent | b837596ab0b208152b3ced4a7cad39be4849ec24 (diff) | |
download | gcc-8cbee12e8fba0d19e93a003780a47c5217322293.tar.gz |
2001-10-30 Daniel Berlin <dan@cgsoftware.com>
* bitmap.c (bitmap_element_free): Don't forget to update head->indx
when we update head->current.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@46669 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r-- | gcc/bitmap.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c index 33cc535fe0b..b735d1409d0 100644 --- a/gcc/bitmap.c +++ b/gcc/bitmap.c @@ -70,7 +70,11 @@ bitmap_element_free (head, elt) /* Since the first thing we try is to insert before current, make current the next entry in preference to the previous. */ if (head->current == elt) - head->current = next != 0 ? next : prev; + { + head->current = next != 0 ? next : prev; + if (head->current) + head->indx = head->current->indx; + } elt->next = bitmap_free; bitmap_free = elt; |