summaryrefslogtreecommitdiff
path: root/gcc/value-prof.c
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2013-08-19 22:14:00 +0000
committerDehao Chen <dehao@gcc.gnu.org>2013-08-19 22:14:00 +0000
commit0d6332222bd42774b4c8751e10f4bcb64a5e4f22 (patch)
tree59e94de7941e1eb3dd7aeb2c9b6e698fd734e71e /gcc/value-prof.c
parentf524d0aa9937002ddffe6f86551f53fb903a1029 (diff)
downloadgcc-0d6332222bd42774b4c8751e10f4bcb64a5e4f22.tar.gz
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
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r--gcc/value-prof.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c
index 8aa9fcda905..69fcbbcf41d 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;