Skip to content

Commit

Permalink
POST_INC_OBJ/POST_DEC_OBJ don't have optional result
Browse files Browse the repository at this point in the history
Possibly we should be encoding this in the opcode metadata, rather
than maintaining a separate list.

Fixes oss-fuzz #39503.
  • Loading branch information
nikic committed Oct 5, 2021
1 parent 9523542 commit c958adc
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions ext/opcache/Optimizer/dce.c
Original file line number Diff line number Diff line change
Expand Up @@ -349,9 +349,7 @@ static zend_bool try_remove_var_def(context *ctx, int free_var, int use_chain, z
case ZEND_PRE_INC:
case ZEND_PRE_DEC:
case ZEND_PRE_INC_OBJ:
case ZEND_POST_INC_OBJ:
case ZEND_PRE_DEC_OBJ:
case ZEND_POST_DEC_OBJ:
case ZEND_DO_ICALL:
case ZEND_DO_UCALL:
case ZEND_DO_FCALL_BY_NAME:
Expand Down

0 comments on commit c958adc

Please sign in to comment.