Skip to content

Commit ca15956

Browse files
committed
Fixed IS_UNDEF handling
1 parent 807d6c0 commit ca15956

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

ext/opcache/jit/zend_jit_x86.dasc

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,16 +1612,12 @@ static zend_bool is_power_of_two(uint32_t x)
16121612

16131613
static zend_bool has_concrete_type(uint32_t value_type)
16141614
{
1615-
if (value_type & MAY_BE_UNDEF) {
1616-
value_type |= MAY_BE_NULL;
1617-
}
1618-
value_type &= MAY_BE_ANY;
1619-
return is_power_of_two (value_type);
1615+
return is_power_of_two (value_type & (MAY_BE_ANY|MAY_BE_UNDEF));
16201616
}
16211617

16221618
static uint32_t concrete_type(uint32_t value_type)
16231619
{
1624-
return floor_log2(value_type & MAY_BE_ANY);
1620+
return floor_log2(value_type & (MAY_BE_ANY|MAY_BE_UNDEF));
16251621
}
16261622

16271623
static inline zend_bool is_signed(double d)

0 commit comments

Comments
 (0)