]> granicus.if.org Git - php/commitdiff
conflicts variable name
authorXinchen Hui <laruence@gmail.com>
Fri, 20 Nov 2015 17:10:20 +0000 (09:10 -0800)
committerXinchen Hui <laruence@gmail.com>
Sat, 21 Nov 2015 03:03:18 +0000 (19:03 -0800)
ext/opcache/Optimizer/block_pass.c

index 4e2bfec99345708fa78282f5fde9089279520953..9a100e15f94c64a737229a205074993a0e31050f 100644 (file)
@@ -753,13 +753,12 @@ optimize_const_unary_op:
 /* Rebuild plain (optimized) op_array from CFG */
 static void assemble_code_blocks(zend_cfg *cfg, zend_op_array *op_array)
 {
-       int n;
        zend_basic_block *blocks = cfg->blocks;
        zend_basic_block *end = blocks + cfg->blocks_count;
        zend_basic_block *b;
        zend_op *new_opcodes;
        zend_op *opline;
-       int len = 0;
+       uint32_t len = 0;
 
        for (b = blocks; b < end; b++) {
                if (b->flags & ZEND_BB_REACHABLE) {
@@ -799,14 +798,14 @@ static void assemble_code_blocks(zend_cfg *cfg, zend_op_array *op_array)
        /* Copy code of reachable blocks into a single buffer */
        for (b = blocks; b < end; b++) {
                if (b->flags & ZEND_BB_REACHABLE) {
-                       uint32_t len;
+                       uint32_t n;
 
                        ZEND_ASSERT(b->start <= b->end);
-                       len = b->end - b->start + 1;
-                       memcpy(opline, op_array->opcodes + b->start, len * sizeof(zend_op));
+                       n = b->end - b->start + 1;
+                       memcpy(opline, op_array->opcodes + b->start, n * sizeof(zend_op));
                        b->start = opline - new_opcodes;
-                       b->end = opline - new_opcodes + len - 1;
-                       opline += len;
+                       b->end = opline - new_opcodes + n - 1;
+                       opline += n;
                }
        }