summary refs log tree commit diff
path: root/cfg.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-27 12:01:44 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-02-27 12:01:48 -0500
commitf151e426585ef86e3b4295bbe02f5c9072b58ea4 (patch)
tree1f4a4d3fb24ccba78dfdc041d0ef2a61a497bba3 /cfg.c
parent4c3c80e7e17e13ffc5a73d2563156d823c800b63 (diff)
downloadroux-f151e426585ef86e3b4295bbe02f5c9072b58ea4.tar.gz
remove unused parameter from uffind()
Diffstat (limited to 'cfg.c')
-rw-r--r--cfg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cfg.c b/cfg.c
index 2f681ce..dff0765 100644
--- a/cfg.c
+++ b/cfg.c
@@ -280,13 +280,13 @@ fillloop(Fn *fn)
 }
 
 static void
-uffind(Blk **pb, Blk **uf, Fn *fn)
+uffind(Blk **pb, Blk **uf)
 {
 	Blk **pb1;
 
 	pb1 = &uf[(*pb)->id];
 	if (*pb1) {
-		uffind(pb1, uf, fn);
+		uffind(pb1, uf);
 		*pb = *pb1;
 	}
 }
@@ -309,9 +309,9 @@ simpljmp(Fn *fn)
 	}
 	for (b=fn->start; b; b=b->link) {
 		if (b->s1)
-			uffind(&b->s1, uf, fn);
+			uffind(&b->s1, uf);
 		if (b->s2)
-			uffind(&b->s2, uf, fn);
+			uffind(&b->s2, uf);
 		c = b->jmp.type - Jxjc;
 		if (0 <= c && c <= NXICmp)
 		if (b->s1 == b->s2) {