tcg/optimize: move default return out of if statement

This is to appease sanitizer builds which complain that:

"error: control reaches end of non-void function"

Backports commit 550276ae0a88851edda2cb7fcdd64256dbb8e314 from qemu
This commit is contained in:
Alex Bennée 2018-02-26 05:05:01 -05:00 committed by Lioncash
parent 4046235e92
commit bf72733576
No known key found for this signature in database
GPG key ID: 4E3C3CC1031BA9C7

View file

@ -474,9 +474,8 @@ static TCGArg do_constant_folding_cond(TCGContext *s, TCGOpcode op, TCGArg x,
default:
return 2;
}
} else {
return 2;
}
return 2;
}
/* Return 2 if the condition can't be simplified, and the result