]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
authorJeff Law <law@redhat.com>
Fri, 21 May 2010 21:00:56 +0000 (15:00 -0600)
committerJeff Law <law@gcc.gnu.org>
Fri, 21 May 2010 21:00:56 +0000 (15:00 -0600)
* ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.

From-SVN: r159683

gcc/ChangeLog
gcc/ira-costs.c

index 06529f51a05b8380ec3f2a073e519c845e4efacd..35cb08a3417aa86389608e4312139ffe87c96f6f 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-21  Jeff Law  <law@redhat.com>
+
+       * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
+
 2010-05-21  Jason Merrill  <jason@redhat.com>
 
        * tree-eh.c (cleanup_is_dead_in): New.
index 6942931bdd0c25e543d71978e5f0c418dfbdec9a..491b86bb841ca1ca5e5df3e03601daaf5e694a23 100644 (file)
@@ -1794,7 +1794,7 @@ ira_tune_allocno_costs_and_cover_classes (void)
                  {
                    regno = ira_non_ordered_class_hard_regs[cover_class][j];
                    index = ira_class_hard_reg_index[cover_class][regno];
-                   ira_assert (index != 0);
+                   ira_assert (index != -1);
                    reg_costs[index] += ALLOCNO_FREQ (a);
                  }
              }