com php-src: Remove odd variable assignment in escape_analysi s: ext/opcache/Optimizer/escape_analysis.c

From: Date: Fri, 12 Apr 2019 09:56:37 +0000
Subject: com php-src: Remove odd variable assignment in escape_analysi s: ext/opcache/Optimizer/escape_analysis.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-105684@lists.php.net to get a copy of this message
Commit: 49ce7c0014a8ab3a5baa7c8e824ded58c1158a63 Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 12 Apr 2019 11:56:37 +0200 Parents: c09b63595ef7edcaae6638932dceae531c26c3cf Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=49ce7c0014a8ab3a5baa7c8e824ded58c1158a63 Log: Remove odd variable assignment in escape_analysis As we are breaking out of the for loop setting i = ssa_vars_count doesn't do anything, but it confuses GCC into throwing a no-overflow assumption warning. Changed paths: M ext/opcache/Optimizer/escape_analysis.c Diff: diff --git a/ext/opcache/Optimizer/escape_analysis.c b/ext/opcache/Optimizer/escape_analysis.c index e350cf7..1607c69 100644 --- a/ext/opcache/Optimizer/escape_analysis.c +++ b/ext/opcache/Optimizer/escape_analysis.c @@ -535,7 +535,6 @@ int zend_ssa_escape_analysis(const zend_script *script, zend_op_array *op_array, if (ssa_vars[root].escape_state == ESCAPE_STATE_GLOBAL_ESCAPE) { num_non_escaped--; if (num_non_escaped == 0) { - i = ssa_vars_count; changed = 0; } else { changed = 1;

« previous php.cvs (#105684) next »