From 9575c46feb435ceb81ae266aad17aae12327829d Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Wed, 19 Aug 2015 13:16:26 -0400 Subject: the abi is unclear, practice suggests that change --- lisc/isel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisc/isel.c') diff --git a/lisc/isel.c b/lisc/isel.c index 2d69c4d..bace637 100644 --- a/lisc/isel.c +++ b/lisc/isel.c @@ -426,7 +426,7 @@ isel(Fn *fn) /* assign slots to fast allocs */ for (n=Tmp0; nntmp; 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) { -- cgit 1.4.1