Commit d235d162 authored by Michael Beck's avatar Michael Beck
Browse files

- BugFix: do NOT dump loop info IF it is not valid

[r25229]
parent cf464c08
......@@ -184,11 +184,12 @@ int dump_irnode_to_file(FILE *F, ir_node *n) {
}
/* Loop node. Someone else please tell me what's wrong ... */
if (get_irn_loop(n)) {
if (get_irg_loopinfo_state(irg) & loopinfo_valid) {
ir_loop *loop = get_irn_loop(n);
assert(loop);
fprintf(F, " in loop %d with depth %d\n",
get_loop_loop_nr(loop), get_loop_depth(loop));
if (loop != NULL) {
fprintf(F, " in loop %d with depth %d\n",
get_loop_loop_nr(loop), get_loop_depth(loop));
}
}
/* Source types */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment