summary refs log tree commit diff
path: root/fold.c
diff options
context:
space:
mode:
authorQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-09 14:31:42 -0400
committerQuentin Carbonneaux <quentin.carbonneaux@yale.edu>2016-04-09 14:31:42 -0400
commitd8770d112bcee4c9df1cb4276780bddc818de5a4 (patch)
tree662afede4a76dfd84c4d922981a59fab057edf51 /fold.c
parent71e6fa0b302e38232199f53214d06d7001c64caa (diff)
downloadroux-d8770d112bcee4c9df1cb4276780bddc818de5a4.tar.gz
fix wrong assertion in fold
Diffstat (limited to 'fold.c')
-rw-r--r--fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fold.c b/fold.c
index e5c92c3..55e8b72 100644
--- a/fold.c
+++ b/fold.c
@@ -206,7 +206,7 @@ fold(Fn *fn)
 			}
 			b->visit++;
 			assert(b->jmp.type != JJmp
-				|| edge[n][0].dead != 0
+				|| !edge[n][0].dead
 				|| flowrk == &edge[n][0]);
 		}
 		else if (nuse) {