Skip to content

Commit f9c567e

Browse files
committed
Review zend_is_true() usage in JIT
1 parent dd6ea91 commit f9c567e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7978,6 +7978,7 @@ static int zend_jit_bool_jmpznz(dasm_State **Dst, const zend_op *opline, uint32_
79787978
}
79797979

79807980
if (Z_MODE(op1_addr) == IS_CONST_ZVAL) {
7981+
/* zend_is_true() cannot fail as op1 cannot be an object */
79817982
if (zend_is_true(Z_ZV(op1_addr))) {
79827983
/* Always TRUE */
79837984
if (set_bool) {

0 commit comments

Comments
 (0)