diff options
Diffstat (limited to 'gcc/ira-costs.c')
-rw-r--r-- | gcc/ira-costs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ira-costs.c b/gcc/ira-costs.c index f517386ceef..a22bb1571cc 100644 --- a/gcc/ira-costs.c +++ b/gcc/ira-costs.c @@ -299,6 +299,8 @@ setup_regno_cost_classes_by_mode (int regno, enum machine_mode mode) classes_ptr = setup_cost_classes (&classes); *slot = classes_ptr; } + else + classes_ptr = *slot; cost_classes_mode_cache[mode] = (cost_classes_t) *slot; } regno_cost_classes[regno] = classes_ptr; |