summary refs log tree commit diff
path: root/fold.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-12 14:23:11 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-12 14:51:50 -0400
commit4be9d2b5593dec6b4251c789fbabbe985655d670 (patch)
tree7e6954ad722cf67106f988cbaf9a154cc31c8ee9 /fold.c
parenteb3a5b4457b141f28346b1b284db28c4bde1a6a1 (diff)
downloadroux-4be9d2b5593dec6b4251c789fbabbe985655d670.tar.gz
cosmetic modification in fold
Diffstat (limited to 'fold.c')
-rw-r--r--fold.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fold.c b/fold.c
index c3cb48f..06b8b12 100644
--- a/fold.c
+++ b/fold.c
@@ -80,9 +80,8 @@ visitphi(Phi *p, int n, Fn *fn)
 			dead = edge[m][1].dead;
 		else
 			die("invalid phi argument");
-		m = latval(p->arg[a]);
 		if (!dead)
-			v = latmerge(v, m);
+			v = latmerge(v, latval(p->arg[a]));
 	}
 	update(p->to.val, v, fn);
 }