Commit f7c8a2da by Dmitry Vyukov Committed by Dmitry Vyukov

Fix flags for edges from/to entry/exit basic blocks.

	* cgraphunit.c (init_lowered_empty_function):
	Fix flags for new edges.

From-SVN: r182251
parent 60f3dad7
2011-12-12 Dmitry Vyukov <dvyukov@google.com>
* cgraphunit.c (init_lowered_empty_function):
Fix flags for new edges.
2011-12-12 Jakub Jelinek <jakub@redhat.com>
PR middle-end/51510
......@@ -1459,8 +1459,8 @@ init_lowered_empty_function (tree decl)
/* Create BB for body of the function and connect it properly. */
bb = create_basic_block (NULL, (void *) 0, ENTRY_BLOCK_PTR);
make_edge (ENTRY_BLOCK_PTR, bb, 0);
make_edge (bb, EXIT_BLOCK_PTR, 0);
make_edge (ENTRY_BLOCK_PTR, bb, EDGE_FALLTHRU);
make_edge (bb, EXIT_BLOCK_PTR, EDGE_FALLTHRU);
return bb;
}
......
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