codegen.c: stop peephole optimization for headless case statement.

This fixes #5815
This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-10-28 15:57:35 +09:00
parent 9ff247c5c2
commit 02f44d76fc
+1 -1
View File
@@ -2623,7 +2623,7 @@ codegen(codegen_scope *s, node *tree, int val)
else {
pop();
}
tmp = genjmp2(s, OP_JMPIF, cursp(), pos2, NOVAL);
tmp = genjmp2(s, OP_JMPIF, cursp(), pos2, !head);
pos2 = tmp;
n = n->cdr;
}