projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fdc8d1a
)
- don't end in an endless loop for invalid types (but hit an assert)
author
Matthias Braun
<matze@braunis.de>
Fri, 11 Aug 2006 09:14:03 +0000
(09:14 +0000)
committer
Matthias Braun
<matze@braunis.de>
Fri, 11 Aug 2006 09:14:03 +0000
(09:14 +0000)
ir/be/ia32/ia32_gen_decls.c
patch
|
blob
|
history
diff --git
a/ir/be/ia32/ia32_gen_decls.c
b/ir/be/ia32/ia32_gen_decls.c
index
08608e7
..
94722d2
100644
(file)
--- a/
ir/be/ia32/ia32_gen_decls.c
+++ b/
ir/be/ia32/ia32_gen_decls.c
@@
-469,7
+469,7
@@
static void dump_global(struct obstack *rdata_obstack, struct obstack *data_obst
stepsize = (get_type_size_bits(step_type) + 7) >> 3;
/* Search the next free position in vals depending on the information from above (ai). */
stepsize = (get_type_size_bits(step_type) + 7) >> 3;
/* Search the next free position in vals depending on the information from above (ai). */
- while (vals[offset]) {
+ while (vals[offset]
&& aipos >= 0
) {
if (ai[aipos].visit_cnt < ai[aipos].n_elems) {
offset += stepsize;
ai[aipos].visit_cnt++;
if (ai[aipos].visit_cnt < ai[aipos].n_elems) {
offset += stepsize;
ai[aipos].visit_cnt++;