summary refs log tree commit diff
path: root/ssa.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-01-12 22:31:51 -0500
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2017-01-12 22:31:51 -0500
commit2b4ece6f99c18df090a127ec20c60ff05cbc0705 (patch)
treee8ef009433b47325520cd6b7f429409cccedce6b /ssa.c
parente38da51c14d9eaf8c53b58b3d2e33d7b37768f29 (diff)
downloadroux-2b4ece6f99c18df090a127ec20c60ff05cbc0705.tar.gz
use a less obtuse api for vnew()
Diffstat (limited to 'ssa.c')
-rw-r--r--ssa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssa.c b/ssa.c
index a040484..c0c340c 100644
--- a/ssa.c
+++ b/ssa.c
@@ -52,7 +52,7 @@ filluse(Fn *fn)
 		tmp[t].phi = 0;
 		tmp[t].cls = 0;
 		if (tmp[t].use == 0)
-			tmp[t].use = vnew(0, sizeof(Use), alloc);
+			tmp[t].use = vnew(0, sizeof(Use), Pfn);
 	}
 	for (b=fn->start; b; b=b->link) {
 		for (p=b->phi; p; p=p->link) {