* 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 b27dd3f8df69de9cf744b707b88c4f88409d5d08..d1fcd18815d464049454d3157f91dd96fa5f9aff 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 132c1276e89173b08b8ffa7dd33e6a4f7f2843e6..290281ccd4f0982ba72274b29769e28f591bdfd1 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);