Skip to content

Commit 7eee0d1

Browse files
author
Tony Su
authored
[Zend]: Remove unused code in MAKE_NOP macro (#10906)
Prefer to see clean code. In MAKE_NOP macro, op.num is first set to 0, but immediately set to -1 by SET_UNUSED macro, which invalidates previous set-to-zero code. So clean the code to make it look nice and neat. Signed-off-by: Tony Su <[email protected]>
1 parent ca6704c commit 7eee0d1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Diff for: Zend/zend_compile.h

-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,6 @@
3434
} while (0)
3535

3636
#define MAKE_NOP(opline) do { \
37-
(opline)->op1.num = 0; \
38-
(opline)->op2.num = 0; \
39-
(opline)->result.num = 0; \
4037
(opline)->opcode = ZEND_NOP; \
4138
SET_UNUSED((opline)->op1); \
4239
SET_UNUSED((opline)->op2); \

0 commit comments

Comments
 (0)