Skip to content

Commit f70ac41

Browse files
committed
Fixed possible failure when repair after overflow detection
1 parent a69701d commit f70ac41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3858,7 +3858,7 @@ static int zend_jit_math_long_long(dasm_State **Dst,
38583858
} else {
38593859
result_reg = Z_REG(res_addr);
38603860
}
3861-
} else if (Z_MODE(op1_addr) == IS_REG && Z_LAST_USE(op1_addr)) {
3861+
} else if (Z_MODE(op1_addr) == IS_REG && Z_LAST_USE(op1_addr) && !may_overflow) {
38623862
result_reg = Z_REG(op1_addr);
38633863
} else if (Z_REG(res_addr) != ZREG_REG0) {
38643864
result_reg = ZREG_REG0;

0 commit comments

Comments
 (0)