Skip to content

Commit 8927dec

Browse files
committed
feat: Modify generator script.
1 parent 27dfd6c commit 8927dec

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Zend/zend_vm_gen.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,7 +1582,6 @@ function gen_null_handler($f, $kind) {
15821582
out($f,"\n");
15831583
out($f,"\tSAVE_OPLINE();\n");
15841584
out($f,"\tzend_error_noreturn(E_ERROR, \"Invalid opcode %d/%d/%d.\", OPLINE->opcode, OPLINE->op1_type, OPLINE->op2_type);\n");
1585-
out($f,"\tZEND_VM_NEXT_OPCODE(); /* Never reached */\n");
15861585
out($f,"}\n\n");
15871586
}
15881587

@@ -1811,12 +1810,10 @@ function gen_executor_code($f, $spec, $kind, $prolog, &$switch_labels = array())
18111810
case ZEND_VM_KIND_SWITCH:
18121811
out($f,"default: ZEND_NULL_LABEL:\n");
18131812
out($f,"\tzend_error_noreturn(E_ERROR, \"Invalid opcode %d/%d/%d.\", OPLINE->opcode, OPLINE->op1_type, OPLINE->op2_type);\n");
1814-
out($f,"\tZEND_VM_NEXT_OPCODE(); /* Never reached */\n");
18151813
break;
18161814
case ZEND_VM_KIND_GOTO:
18171815
out($f,"ZEND_NULL_LABEL:\n");
18181816
out($f,"\tzend_error_noreturn(E_ERROR, \"Invalid opcode %d/%d/%d.\", OPLINE->opcode, OPLINE->op1_type, OPLINE->op2_type);\n");
1819-
out($f,"\tZEND_VM_NEXT_OPCODE(); /* Never reached */\n");
18201817
break;
18211818
case ZEND_VM_KIND_HYBRID:
18221819
out($f,"\t\t\tHYBRID_CASE(HYBRID_HALT):\n");

0 commit comments

Comments
 (0)