OSDN Git Service

* ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 May 2010 21:00:56 +0000 (21:00 +0000)
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 21 May 2010 21:00:56 +0000 (21:00 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159683 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ira-costs.c

index 06529f5..35cb08a 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 6942931..491b86b 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);
                  }
              }