(shorten_branches): Correctly access insn needing delay slot.
authorRichard Kenner <kenner@gcc.gnu.org>
Wed, 23 Sep 1992 23:23:47 +0000 (19:23 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Wed, 23 Sep 1992 23:23:47 +0000 (19:23 -0400)
From-SVN: r2216

gcc/final.c

index 4322356966fa7f873988a04bd3b3df8282b49d7a..1bc9e7cd1f7e60d6100eef2c826629e5b9356e24 100644 (file)
@@ -529,7 +529,7 @@ shorten_branches (first)
          int i;
          int const_delay_slots;
 #ifdef DELAY_SLOTS
-         const_delay_slots = const_num_delay_slots (XVECEXP (body, 0, 1));
+         const_delay_slots = const_num_delay_slots (XVECEXP (body, 0, 0));
 #else
          const_delay_slots = 0;
 #endif