mirror of
https://github.com/DarkPlacesEngine/gmqcc.git
synced 2025-02-21 02:40:56 +00:00
Dump should print a warning if lifepasses don't match...
This commit is contained in:
parent
46122235e6
commit
b5aed08c93
1 changed files with 6 additions and 3 deletions
9
ir.c
9
ir.c
|
@ -1683,10 +1683,13 @@ void ir_function_dump(ir_function *f, char *ind,
|
|||
}
|
||||
if (f->blocks_count)
|
||||
{
|
||||
|
||||
oprintf("%slife passes: %i\n", ind, (int)f->blocks[0]->run_id);
|
||||
for (i = 0; i < f->blocks_count; ++i)
|
||||
oprintf("%slife passes (check): %i\n", ind, (int)f->run_id);
|
||||
for (i = 0; i < f->blocks_count; ++i) {
|
||||
if (f->blocks[i]->run_id != f->run_id) {
|
||||
oprintf("%slife pass check fail! %i != %i\n", ind, (int)f->blocks[i]->run_id, (int)f->run_id);
|
||||
}
|
||||
ir_block_dump(f->blocks[i], ind, oprintf);
|
||||
}
|
||||
|
||||
}
|
||||
ind[strlen(ind)-1] = 0;
|
||||
|
|
Loading…
Reference in a new issue