]> granicus.if.org Git - php/commitdiff
Move assert() to right place
authorDmitry Stogov <dmitry@zend.com>
Thu, 9 Jul 2020 12:56:24 +0000 (15:56 +0300)
committerDmitry Stogov <dmitry@zend.com>
Thu, 9 Jul 2020 12:56:24 +0000 (15:56 +0300)
ext/opcache/jit/zend_jit_x86.dasc

index 7ba23e3d105f885b60d91c3a8c7f1f051602b9c0..cfd3b0f4cbaea3ad762e33c933a9ff8d5bbdcd2b 100644 (file)
@@ -7666,7 +7666,6 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, const z
                                |       SET_ZVAL_TYPE_INFO res_addr, eax
                        }
                } else {
-                       ZEND_ASSERT(true_label != (uint32_t)-1 || false_label != (uint32_t)-1);
                        if (exit_addr) {
                                if (branch_opcode == ZEND_JMPNZ || branch_opcode == ZEND_JMPNZ_EX) {
                                        |       jp >1
@@ -7677,6 +7676,7 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, const z
                                        |       je &exit_addr
                                }
                        } else {
+                               ZEND_ASSERT(true_label != (uint32_t)-1 || false_label != (uint32_t)-1);
                                if (false_label != (uint32_t)-1) {
                                        |       jp =>false_label
                                } else {