summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--lisc/ssa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisc/ssa.c b/lisc/ssa.c
index 0980de4..4bf6c46 100644
--- a/lisc/ssa.c
+++ b/lisc/ssa.c
@@ -47,10 +47,10 @@ rporec(Blk *b, int x)
 	if (b->id >= 0)
 		return x;
 	b->id = 1;
-	if (b->s1)
-		x = rporec(b->s1, x);
 	if (b->s2)
 		x = rporec(b->s2, x);
+	if (b->s1)
+		x = rporec(b->s1, x);
 	b->id = x;
 	assert(x >= 0);
 	return x - 1;