qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 0ae8564b3cd63fba47e7581f92e25a1964cd2fe4
parent 94b22db5c8c835c54790b32d0549b3cb975b8037
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Mon, 15 Feb 2016 15:37:04 -0500

initialize class correctly in pmgen()

Diffstat:
Mlisc/rega.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisc/rega.c b/lisc/rega.c @@ -230,7 +230,7 @@ pmrec(enum PMStat *status, int i, int *k) static void pmgen() { - int i, w; + int i, k; enum PMStat *status; status = alloc(npm * sizeof status[0]); @@ -238,8 +238,8 @@ pmgen() curi = insb; for (i=0; i<npm; i++) if (status[i] == ToMove) { - w = 0; - pmrec(status, i, &w); + k = pm[i].cls; + pmrec(status, i, &k); } }