On 07/26/2017 07:42 PM, Philippe Mathieu-Daudé wrote:
db3d7945ae extended gen_cc_cond() for cond [6, 7, 9, 10] but misswrote [4, 5]

target/m68k/translate.c:1323:70: warning: identical expressions on both sides 
of logical operator
         if (op == CC_OP_ADDB || op == CC_OP_ADDW || op == CC_OP_ADDL ||
             op == CC_OP_ADDB || op == CC_OP_ADDW || op == CC_OP_ADDL) {
             ~~~~~~~~~~~~~~~~    ~~~~~~~~~~~~~~~~    ~~~~~~~~~~~~~~~~ ^

Reported-by: Clang Static Analyzer
Signed-off-by: Philippe Mathieu-Daudé<f4...@amsat.org>
Reviewed-by: Laurent Vivier<laur...@vivier.eu>
---
  target/m68k/translate.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Richard Henderson <r...@twiddle.net>


r~

Reply via email to