Commit 0d633222 by Dehao Chen Committed by Dehao Chen

value-prof.c (gimple_ic): Fix the bug of adding EH edge.

2013-08-19  Dehao Chen (dehao@google.com)

        * value-prof.c (gimple_ic): Fix the bug of adding EH edge.

From-SVN: r201859
parent f524d0aa
2013-08-19 Dehao Chen (dehao@google.com)
* value-prof.c (gimple_ic): Fix the bug of adding EH edge.
2013-08-19 Peter Bergner <bergner@vnet.ibm.com> 2013-08-19 Peter Bergner <bergner@vnet.ibm.com>
Jakub Jelinek <jakub@redhat.com> Jakub Jelinek <jakub@redhat.com>
......
...@@ -1395,8 +1395,7 @@ gimple_ic (gimple icall_stmt, struct cgraph_node *direct_call, ...@@ -1395,8 +1395,7 @@ gimple_ic (gimple icall_stmt, struct cgraph_node *direct_call,
/* Build an EH edge for the direct call if necessary. */ /* Build an EH edge for the direct call if necessary. */
lp_nr = lookup_stmt_eh_lp (icall_stmt); lp_nr = lookup_stmt_eh_lp (icall_stmt);
if (lp_nr != 0 if (lp_nr > 0 && stmt_could_throw_p (dcall_stmt))
&& stmt_could_throw_p (dcall_stmt))
{ {
edge e_eh, e; edge e_eh, e;
edge_iterator ei; edge_iterator ei;
......
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