diff options
author | 2016-09-30 22:30:55 +0100 | |
---|---|---|
committer | 2016-10-04 10:00:25 +0200 | |
commit | 550276ae0a88851edda2cb7fcdd64256dbb8e314 (patch) | |
tree | b37d8e9a96758b52071435598afa5fa426d269cc /tcg/optimize.c | |
parent | atomic.h: comment on use of atomic_read/set (diff) | |
download | qemu-550276ae0a88851edda2cb7fcdd64256dbb8e314.tar.xz qemu-550276ae0a88851edda2cb7fcdd64256dbb8e314.zip |
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>
Diffstat (limited to 'tcg/optimize.c')
-rw-r--r-- | tcg/optimize.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tcg/optimize.c b/tcg/optimize.c index 9998ac7413..0f1349086b 100644 --- a/tcg/optimize.c +++ b/tcg/optimize.c @@ -468,9 +468,8 @@ static TCGArg do_constant_folding_cond(TCGOpcode op, TCGArg x, default: return 2; } - } else { - return 2; } + return 2; } /* Return 2 if the condition can't be simplified, and the result |