diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2022-02-09 11:21:42 +0000 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-03-04 08:50:41 -1000 |
commit | 9becc36f0285da206150bc4f0c774f3298aaa439 (patch) | |
tree | 0ca2bc8990c6fc0d712c2bbfc1cfeee5589feea4 /.editorconfig | |
parent | 3d1fbc59665ff8a5d74b0fd30583044fe99e1117 (diff) |
tcg/optimize: only read val after const check
valgrind pointed out that arg_info()->val can be undefined which will
be the case if the arguments are not constant. The ordering of the
checks will have ensured we never relied on an undefined value but for
the sake of completeness re-order the code to be clear.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20220209112142.3367525-1-alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to '.editorconfig')
0 files changed, 0 insertions, 0 deletions