From: dehao Date: Mon, 19 Aug 2013 22:14:00 +0000 (+0000) Subject: 2013-08-19 Dehao Chen (dehao@google.com) X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bce9fa89242414309d1eeb041ecb9a930c80c899;p=thirdparty%2Fgcc.git 2013-08-19 Dehao Chen (dehao@google.com) * value-prof.c (gimple_ic): Fix the bug of adding EH edge. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@201859 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa0a79075563..1e28906ed6eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +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 Jakub Jelinek diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 8aa9fcda905f..69fcbbcf41d6 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -1395,8 +1395,7 @@ gimple_ic (gimple icall_stmt, struct cgraph_node *direct_call, /* Build an EH edge for the direct call if necessary. */ lp_nr = lookup_stmt_eh_lp (icall_stmt); - if (lp_nr != 0 - && stmt_could_throw_p (dcall_stmt)) + if (lp_nr > 0 && stmt_could_throw_p (dcall_stmt)) { edge e_eh, e; edge_iterator ei;