summary refs log tree commit diff
path: root/lisc/isel.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-24 09:50:03 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-02-24 09:50:03 -0500
commite10b91fcc96ef74410387c6ca8268fca5e12b68b (patch)
tree31f8975037d6eae9b5b5741e92ddbf5bce4d1d22 /lisc/isel.c
parent72988e6aa899ab5f13620d0f7eb5b9e44fdf262e (diff)
downloadroux-e10b91fcc96ef74410387c6ca8268fca5e12b68b.tar.gz
simply use memset to 0 stuff
Diffstat (limited to 'lisc/isel.c')
-rw-r--r--lisc/isel.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisc/isel.c b/lisc/isel.c
index 499a6e0..1db3087 100644
--- a/lisc/isel.c
+++ b/lisc/isel.c
@@ -877,7 +877,7 @@ isel(Fn *fn)
 	Ins *i, *i0, *ip;
 	Phi *p;
 	uint a;
-	int n, m, al;
+	int n, al;
 	int64_t sz;
 	ANum *ainfo;
 
@@ -951,8 +951,7 @@ isel(Fn *fn)
 					assert(a+1 < p->narg);
 				fixarg(&p->arg[a], p->cls, 1, fn);
 			}
-		for (m=0; m<n; m++)
-			ainfo[m] = (ANum){.n = 0, .i = 0};
+		memset(ainfo, 0, n * sizeof ainfo[0]);
 		anumber(ainfo, b, fn->con);
 		seljmp(b, fn);
 		for (i=&b->ins[b->nins]; i!=b->ins;)