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"

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20160930213106.20186-5-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Alex Bennée 2016-09-30 22:30:55 +01:00 committed by Paolo Bonzini
parent e653bc6b0f
commit 550276ae0a
1 changed files with 1 additions and 2 deletions

View File

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