commit 9575c46feb435ceb81ae266aad17aae12327829d
parent f48fc69f9eb49cdece7752545c76114eff065bef
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date: Wed, 19 Aug 2015 13:16:26 -0400
the abi is unclear, practice suggests that change
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisc/isel.c b/lisc/isel.c
@@ -426,7 +426,7 @@ isel(Fn *fn)
/* assign slots to fast allocs */
for (n=Tmp0; n<fn->ntmp; n++)
fn->tmp[n].spill = 0;
- memcpy(fn->svec, (int[3]){0, 0, 2}, 3 * sizeof(int));
+ memset(fn->svec, 0, sizeof fn->svec);
for (b=fn->start, i=b->ins; i-b->ins < b->nins; i++)
if (OAlloc <= i->op && i->op <= OAlloc1) {