* df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
authorEric Botcazou <ebotcazou@adacore.com>
Thu, 9 Jun 2016 21:50:55 +0000 (21:50 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Thu, 9 Jun 2016 21:50:55 +0000 (21:50 +0000)
From-SVN: r237279

gcc/ChangeLog
gcc/df-problems.c

index b27dd3f..d1fcd18 100644 (file)
@@ -1,3 +1,7 @@
+2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
+
 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
            Jiong Wang  <jiong.wang@arm.com>
 
index 132c127..290281c 100644 (file)
@@ -3498,13 +3498,13 @@ df_note_bb_compute (unsigned int bb_index,
 
   FOR_BB_INSNS_REVERSE (bb, insn)
     {
+      if (!INSN_P (insn))
+       continue;
+
       df_insn_info *insn_info = DF_INSN_INFO_GET (insn);
       df_mw_hardreg *mw;
       int debug_insn;
 
-      if (!INSN_P (insn))
-       continue;
-
       debug_insn = DEBUG_INSN_P (insn);
 
       bitmap_clear (do_not_gen);