diff options
Diffstat (limited to 'gcc/graph.c')
-rw-r--r-- | gcc/graph.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gcc/graph.c b/gcc/graph.c index dd5bc4e..d3e2d2e 100644 --- a/gcc/graph.c +++ b/gcc/graph.c @@ -156,9 +156,8 @@ draw_cfg_nodes_no_loops (pretty_printer *pp, struct function *fun) { int *rpo = XNEWVEC (int, n_basic_blocks_for_fn (fun)); int i, n; - sbitmap visited; - visited = sbitmap_alloc (last_basic_block_for_fn (cfun)); + auto_sbitmap visited (last_basic_block_for_fn (cfun)); bitmap_clear (visited); n = pre_and_rev_post_order_compute_fn (fun, NULL, rpo, true); @@ -179,8 +178,6 @@ draw_cfg_nodes_no_loops (pretty_printer *pp, struct function *fun) if (! bitmap_bit_p (visited, bb->index)) draw_cfg_node (pp, fun->funcdef_no, bb); } - - sbitmap_free (visited); } /* Draw all the basic blocks in LOOP. Print the blocks in breath-first |