]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2013-08-19 Dehao Chen (dehao@google.com)
authordehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Aug 2013 22:14:00 +0000 (22:14 +0000)
committerdehao <dehao@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 19 Aug 2013 22:14:00 +0000 (22:14 +0000)
        * 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

gcc/ChangeLog
gcc/value-prof.c

index fa0a7907556372927a98a23a6ca0aff394915492..1e28906ed6eb57c11f6ff63f2767712bcfaf5ffb 100644 (file)
@@ -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  <bergner@vnet.ibm.com>
            Jakub Jelinek  <jakub@redhat.com>
 
index 8aa9fcda905f5c5580c552d0849cd821118c0031..69fcbbcf41d6e1ed6f1746451b9ba3acb0042d0f 100644 (file)
@@ -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;