summaryrefslogtreecommitdiff
path: root/Zend/zend_opcode.c
diff options
context:
space:
mode:
authorNikita Popov <nikic@php.net>2016-06-04 12:59:35 +0200
committerNikita Popov <nikic@php.net>2016-06-04 13:27:11 +0200
commitcb3825a8dc551e6a43b4ea3a01dbd0584bf606bb (patch)
treeaeb4dbf6f9166b1c1469abf83e8ef13b1997efe5 /Zend/zend_opcode.c
parentb7bb6d04fd829bc5e854e76f669316f8147e468a (diff)
downloadphp-git-cb3825a8dc551e6a43b4ea3a01dbd0584bf606bb.tar.gz
Small generator-related cleanups
Diffstat (limited to 'Zend/zend_opcode.c')
-rw-r--r--Zend/zend_opcode.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/Zend/zend_opcode.c b/Zend/zend_opcode.c
index 0b5fe75ff8..91787aaad7 100644
--- a/Zend/zend_opcode.c
+++ b/Zend/zend_opcode.c
@@ -642,19 +642,6 @@ ZEND_API int pass_two(zend_op_array *op_array)
/* absolute index to relative offset */
opline->extended_value = ZEND_OPLINE_NUM_TO_OFFSET(op_array, opline, opline->extended_value);
break;
- case ZEND_VERIFY_RETURN_TYPE:
- if (op_array->fn_flags & ZEND_ACC_GENERATOR) {
- if (opline->op1_type != IS_UNUSED) {
- zend_op *ret = opline;
- do ret++; while (ret->opcode != ZEND_RETURN);
-
- ret->op1 = opline->op1;
- ret->op1_type = opline->op1_type;
- }
-
- MAKE_NOP(opline);
- }
- break;
case ZEND_RETURN:
case ZEND_RETURN_BY_REF:
if (op_array->fn_flags & ZEND_ACC_GENERATOR) {