From 4652fe18c7d8c4c9a692c006f81febf38bdf4cb9 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Thu, 12 May 2016 16:46:37 +0300 Subject: [PATCH] Removed useless code --- Zend/zend_execute.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h index 9cca85c4cf..88c9461dc5 100644 --- a/Zend/zend_execute.h +++ b/Zend/zend_execute.h @@ -260,20 +260,15 @@ static zend_always_inline void zend_vm_stack_free_call_frame_ex(uint32_t call_in ZEND_ASSERT_VM_STACK_GLOBAL; if (UNEXPECTED(call_info & ZEND_CALL_ALLOCATED)) { - if (UNEXPECTED(call != (zend_execute_data*)ZEND_VM_STACK_ELEMENTS(EG(vm_stack)))) { - /* This is a generator's stack frame */ - efree(call); - return; - } - zend_vm_stack p = EG(vm_stack); + ZEND_ASSERT(call == (zend_execute_data*)ZEND_VM_STACK_ELEMENTS(EG(vm_stack))); + zend_vm_stack p = EG(vm_stack); zend_vm_stack prev = p->prev; EG(vm_stack_top) = prev->top; EG(vm_stack_end) = prev->end; EG(vm_stack) = prev; efree(p); - } else { EG(vm_stack_top) = (zval*)call; } -- 2.40.0