aboutsummaryrefslogtreecommitdiff
path: root/gcc/bb-reorder.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-08-18 13:16:46 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2009-08-18 13:16:46 +0200
commit68a315304bedd286bcb99966ec7b3a3d21c0ccc0 (patch)
treef801201387c96e1b591dba51dce0cb194e8c777b /gcc/bb-reorder.c
parentfb3e79b2b3418933e13d51bab71920f5a2baf9b6 (diff)
downloadgcc-68a315304bedd286bcb99966ec7b3a3d21c0ccc0.zip
gcc-68a315304bedd286bcb99966ec7b3a3d21c0ccc0.tar.gz
gcc-68a315304bedd286bcb99966ec7b3a3d21c0ccc0.tar.bz2
bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump on jumps.
* bb-reorder.c (fix_up_fall_thru_edges): Only call invert_jump on jumps. From-SVN: r150868
Diffstat (limited to 'gcc/bb-reorder.c')
-rw-r--r--gcc/bb-reorder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c
index d1a36c1..35b4f17 100644
--- a/gcc/bb-reorder.c
+++ b/gcc/bb-reorder.c
@@ -1420,7 +1420,7 @@ fix_up_fall_thru_edges (void)
fall_thru_label = block_label (fall_thru->dest);
- if (old_jump && fall_thru_label)
+ if (old_jump && JUMP_P (old_jump) && fall_thru_label)
invert_worked = invert_jump (old_jump,
fall_thru_label,0);
if (invert_worked)