summaryrefslogtreecommitdiff
path: root/gcc/ebitmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ebitmap.h')
-rw-r--r--gcc/ebitmap.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ebitmap.h b/gcc/ebitmap.h
index 2916e44b223..f2f2b705e89 100644
--- a/gcc/ebitmap.h
+++ b/gcc/ebitmap.h
@@ -1,5 +1,5 @@
/* Sparse array based bitmaps.
- Copyright (C) 2007 Free Software Foundation, Inc.
+ Copyright (C) 2007, 2008 Free Software Foundation, Inc.
This file is part of GCC.
@@ -95,7 +95,13 @@ ebitmap_iter_init (ebitmap_iterator *i, ebitmap bmp, unsigned int min)
min / EBITMAP_ELT_BITS);
i->size = bmp->numwords;
if (i->size == 0)
- return;
+ {
+ i->ptr = NULL;
+ i->eltnum = 0;
+ i->bit_num = 0;
+ i->word = 0;
+ return;
+ }
i->ptr = bmp->elts;
i->bit_num = min;
i->eltnum = 0;