]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
fixing some debug output
authorWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 14:19:35 +0000 (16:19 +0200)
committerWolfgang (Blub) Bumiller <blub@speed.at>
Wed, 22 Aug 2012 14:19:56 +0000 (16:19 +0200)
ir.c

diff --git a/ir.c b/ir.c
index cb44f39751e670dbdb1b1c6f7c79906c29991949..1f09a9a17d223ca4bee7389e538473c2f6cfa22e 100644 (file)
--- a/ir.c
+++ b/ir.c
@@ -2927,16 +2927,16 @@ void ir_function_dump(ir_function *f, char *ind,
         ir_value *v = f->locals[i];
         oprintf("%s\t%s: ", ind, v->name);
         for (l = 0; l < v->life_count; ++l) {
-            oprintf("[%i,%i] ", v->life[i].start, v->life[i].end);
+            oprintf("[%i,%i] ", v->life[l].start, v->life[l].end);
         }
         oprintf("\n");
     }
     for (i = 0; i < f->values_count; ++i) {
         size_t l;
         ir_value *v = f->values[i];
-        oprintf("%s\t%s: ", ind, v->name);
+        oprintf("%s\t%s: (%i)", ind, v->name, (int)v->life_count);
         for (l = 0; l < v->life_count; ++l) {
-            oprintf("[%i,%i] ", v->life[i].start, v->life[i].end);
+            oprintf("[%i,%i] ", v->life[l].start, v->life[l].end);
         }
         oprintf("\n");
     }