auto-profile.c (afdo_propagate): Adjust T const cast to avoid warning.
authorNathan Sidwell <nathan@acm.org>
Thu, 25 May 2017 01:12:29 +0000 (01:12 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 25 May 2017 01:12:29 +0000 (01:12 +0000)
* auto-profile.c (afdo_propagate): Adjust T const cast to avoid
warning.

From-SVN: r248444

gcc/ChangeLog
gcc/auto-profile.c

index 0de25314406040edd0c43db5db2f1d76aef125b7..48155c41b59b500d5ad4fa74217969acd32b820e 100644 (file)
@@ -1,3 +1,8 @@
+2017-05-24  Nathan Sidwell  <nathan@acm.org>
+
+       * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
+       warning.
+
 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
 
        * config/powerpcspe: New port.  Files are copied from the rs6000
index 5c6b505d06bd48bd3461a6011d45d147e2f6d25b..ff5714a6cbcc9b8b1a5475ee14cdbd760c3d4953 100644 (file)
@@ -1377,7 +1377,7 @@ afdo_propagate (bb_set *annotated_bb, edge_set *annotated_edge)
   FOR_ALL_BB_FN (bb, cfun)
   {
     bb->count = ((basic_block)bb->aux)->count;
-    if (is_bb_annotated ((const basic_block)bb->aux, *annotated_bb))
+    if (is_bb_annotated ((basic_block)bb->aux, *annotated_bb))
       set_bb_annotated (bb, annotated_bb);
   }