summary refs log tree commit diff stats
path: root/tcg/tcg-op-vec.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2022-02-09 11:21:42 +0000
committerRichard Henderson <richard.henderson@linaro.org>2022-03-04 08:50:41 -1000
commit9becc36f0285da206150bc4f0c774f3298aaa439 (patch)
tree0ca2bc8990c6fc0d712c2bbfc1cfeee5589feea4 /tcg/tcg-op-vec.c
parent3d1fbc59665ff8a5d74b0fd30583044fe99e1117 (diff)
downloadfocaccia-qemu-9becc36f0285da206150bc4f0c774f3298aaa439.tar.gz
focaccia-qemu-9becc36f0285da206150bc4f0c774f3298aaa439.zip
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 'tcg/tcg-op-vec.c')
0 files changed, 0 insertions, 0 deletions