BugFix: index error fixed
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 24 Mar 2005 16:37:55 +0000 (16:37 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 24 Mar 2005 16:37:55 +0000 (16:37 +0000)
[r5473]

ir/opt/return.c

index ad66d18..02390b3 100644 (file)
@@ -94,12 +94,12 @@ void normalize_one_return(ir_graph *irg)
 
       /* save the return values and shuffle them */
       for (k = 0; k < n_ret_vals; ++k)
 
       /* save the return values and shuffle them */
       for (k = 0; k < n_ret_vals; ++k)
-        retvals[j + k*n_ret_vals] = get_irn_n(ret, k);
-
-      ++j;
+        retvals[j + k*n_rets] = get_irn_n(ret, k);
 
       set_Block_cfgpred(endbl, i, new_r_Bad(irg));
       last_idx = i;
 
       set_Block_cfgpred(endbl, i, new_r_Bad(irg));
       last_idx = i;
+
+      ++j;
     }
   }
 
     }
   }