Skip to content

Commit 1873d35

Browse files
committed
Fix register allocation
1 parent 001cf35 commit 1873d35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/opcache/jit/zend_jit.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,8 @@ static bool zend_jit_ffi_compatible(zend_ffi_type *dst_type, uint32_t src_info,
112112
dst_type = ZEND_FFI_TYPE(dst_type);
113113
if (!zend_jit_ffi_supported_type(dst_type)) {
114114
return false;
115-
} else if (src_info == MAY_BE_LONG || src_info == MAY_BE_DOUBLE) {
115+
} else if ((src_info & (MAY_BE_ANY|MAY_BE_UNDEF)) == MAY_BE_LONG
116+
|| (src_info & (MAY_BE_ANY|MAY_BE_UNDEF)) == MAY_BE_DOUBLE) {
116117
return dst_type->kind < ZEND_FFI_TYPE_POINTER && dst_type->kind != ZEND_FFI_TYPE_VOID;
117118
} else if (src_info == MAY_BE_FALSE || src_info == MAY_BE_TRUE || src_info == (MAY_BE_FALSE|MAY_BE_TRUE)) {
118119
return dst_type->kind == ZEND_FFI_TYPE_BOOL;

0 commit comments

Comments
 (0)