Minor code cleanup

The block for the foreach separator was nested unnecessary. This commit
simply removes that nesting.
This commit is contained in:
Nikita Popov 2012-05-19 14:21:49 +02:00
parent 252f623464
commit 9b51a3b96d

View file

@ -1725,7 +1725,7 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
} }
{ {
/* Push a seperator to the switch and foreach stacks */ /* Push a seperator to the switch stack */
zend_switch_entry switch_entry; zend_switch_entry switch_entry;
switch_entry.cond.op_type = IS_UNUSED; switch_entry.cond.op_type = IS_UNUSED;
@ -1733,9 +1733,10 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
switch_entry.control_var = 0; switch_entry.control_var = 0;
zend_stack_push(&CG(switch_cond_stack), (void *) &switch_entry, sizeof(switch_entry)); zend_stack_push(&CG(switch_cond_stack), (void *) &switch_entry, sizeof(switch_entry));
}
{ {
/* Foreach stack separator */ /* Push a separator to the foreach stack */
zend_op dummy_opline; zend_op dummy_opline;
dummy_opline.result_type = IS_UNUSED; dummy_opline.result_type = IS_UNUSED;
@ -1743,7 +1744,6 @@ void zend_do_begin_function_declaration(znode *function_token, znode *function_n
zend_stack_push(&CG(foreach_copy_stack), (void *) &dummy_opline, sizeof(zend_op)); zend_stack_push(&CG(foreach_copy_stack), (void *) &dummy_opline, sizeof(zend_op));
} }
}
if (CG(doc_comment)) { if (CG(doc_comment)) {
CG(active_op_array)->doc_comment = CG(doc_comment); CG(active_op_array)->doc_comment = CG(doc_comment);