mirror of
git://c9x.me/qbe.git
synced 2026-04-07 10:59:47 +00:00
fix two invalid Tmp.spill values
This commit is contained in:
parent
e2174da2f1
commit
790f852b96
@ -34,6 +34,7 @@ newtmp(Fn *fn)
|
|||||||
if (!fn->tmp)
|
if (!fn->tmp)
|
||||||
diag("isel: out of memory");
|
diag("isel: out of memory");
|
||||||
memset(&fn->tmp[t], 0, sizeof fn->tmp[t]);
|
memset(&fn->tmp[t], 0, sizeof fn->tmp[t]);
|
||||||
|
fn->tmp[t].spill = -1;
|
||||||
sprintf(fn->tmp[t].name, "isel%d", ++n);
|
sprintf(fn->tmp[t].name, "isel%d", ++n);
|
||||||
return TMP(t);
|
return TMP(t);
|
||||||
}
|
}
|
||||||
@ -636,7 +637,7 @@ isel(Fn *fn)
|
|||||||
int n, al, s;
|
int n, al, s;
|
||||||
int64_t sz;
|
int64_t sz;
|
||||||
|
|
||||||
for (n=Tmp0; n<fn->ntmp; n++)
|
for (n=0; n<fn->ntmp; n++)
|
||||||
fn->tmp[n].spill = -1;
|
fn->tmp[n].spill = -1;
|
||||||
fn->slot = 0;
|
fn->slot = 0;
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user