diff options
author | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-30 10:34:52 -0400 |
---|---|---|
committer | Quentin Carbonneaux <quentin.carbonneaux@yale.edu> | 2015-09-30 10:34:52 -0400 |
commit | 790f852b9666748b88fe6ddcbedc8a350027d98f (patch) | |
tree | d8867986814007c019752304da516a2f435e02e6 | |
parent | e2174da2f1562e7b57cc298bfdcc81ac84a125e5 (diff) | |
download | roux-790f852b9666748b88fe6ddcbedc8a350027d98f.tar.gz |
fix two invalid Tmp.spill values
-rw-r--r-- | lisc/isel.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisc/isel.c b/lisc/isel.c index 83617d2..1d060ce 100644 --- a/lisc/isel.c +++ b/lisc/isel.c @@ -34,6 +34,7 @@ newtmp(Fn *fn) if (!fn->tmp) diag("isel: out of memory"); memset(&fn->tmp[t], 0, sizeof fn->tmp[t]); + fn->tmp[t].spill = -1; sprintf(fn->tmp[t].name, "isel%d", ++n); return TMP(t); } @@ -636,7 +637,7 @@ isel(Fn *fn) int n, al, s; int64_t sz; - for (n=Tmp0; n<fn->ntmp; n++) + for (n=0; n<fn->ntmp; n++) fn->tmp[n].spill = -1; fn->slot = 0; |