aboutsummaryrefslogtreecommitdiff
path: root/gcc/bitmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/bitmap.c')
-rw-r--r--gcc/bitmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/bitmap.c b/gcc/bitmap.c
index c3880eb..0255944 100644
--- a/gcc/bitmap.c
+++ b/gcc/bitmap.c
@@ -1186,13 +1186,13 @@ bitmap_last_set_bit (const_bitmap a)
elt = elt->next;
bit_no = elt->indx * BITMAP_ELEMENT_ALL_BITS;
- for (ix = BITMAP_ELEMENT_WORDS - 1; ix >= 0; ix--)
+ for (ix = BITMAP_ELEMENT_WORDS - 1; ix >= 1; ix--)
{
word = elt->bits[ix];
if (word)
goto found_bit;
}
- gcc_unreachable ();
+ gcc_assert (elt->bits[ix] != 0);
found_bit:
bit_no += ix * BITMAP_WORD_BITS;
#if GCC_VERSION >= 3004