* tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.

From-SVN: r211307
This commit is contained in:
Eric Botcazou 2014-06-06 07:39:53 +00:00 committed by Eric Botcazou
parent 726338f44e
commit 9b7a11e153
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
* tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
2014-06-06 Richard Biener <rguenther@suse.de>
* cfgexpand.c (expand_gimple_cond): Remove check for current_loops.

View File

@ -763,8 +763,11 @@ make_edges (void)
fallthru = false;
break;
case GIMPLE_RETURN:
make_edge (bb, EXIT_BLOCK_PTR_FOR_FN (cfun), 0);
fallthru = false;
{
edge e = make_edge (bb, EXIT_BLOCK_PTR_FOR_FN (cfun), 0);
e->goto_locus = gimple_location (last);
fallthru = false;
}
break;
case GIMPLE_COND:
make_cond_expr_edges (bb);