1
0
mirror of https://github.com/php/php-src.git synced 2026-04-12 10:33:11 +02:00

Drop no-op dasm_growpc() call

This doesn't do anything, as maxpc=0 is passed. However, ubsan
complains about the memset of a null pointer, so avoid it.
This commit is contained in:
Nikita Popov
2020-07-22 11:10:42 +02:00
parent aaedbde8b4
commit f90c735957

View File

@@ -4609,7 +4609,6 @@ static const void *zend_jit_trace_exit_to_vm(uint32_t trace_num, uint32_t exit_n
dasm_init(&dasm_state, DASM_MAXSECTION);
dasm_setupglobal(&dasm_state, dasm_labels, zend_lb_MAX);
dasm_setup(&dasm_state, dasm_actions);
dasm_growpc(&dasm_state, 0);
zend_jit_align_func(&dasm_state);