cvsuser 03/11/18 23:20:22
Modified: imcc cfg.c
Log:
Fix ugly bug in flow graph code. Code only traversed 1st entry in each slot of
hash table, not the whole hash.
Revision Changes Path
1.55 +5 -3 parrot/imcc/cfg.c
Index: cfg.c
===================================================================
RCS file: /cvs/public/parrot/imcc/cfg.c,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -w -r1.54 -r1.55
--- cfg.c 17 Nov 2003 00:48:03 -0000 1.54
+++ cfg.c 19 Nov 2003 07:20:21 -0000 1.55
@@ -69,9 +69,11 @@
info(interpreter, 2, "find_basic_blocks\n");
init_basic_blocks(unit);
for(i = 0; i < HASH_SIZE; i++) {
- SymReg * r = unit->hash[i];
+ SymReg * r;
+ for(r = unit->hash[i]; r; r = r->next) {
if (r && (r->type & VTADDRESS)) {
r->last_ins = NULL;
+ }
}
}